/usr/share/doc/libdata-stag-perl/homepage/script-docs/stag-flatten.html is in libdata-stag-perl 0.11-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 | <HTML>
<HEAD>
<TITLE>stag-flatten</TITLE>
<LINK REV="made" HREF="mailto:feedback@suse.de">
</HEAD>
<BODY>
<A NAME="__index__"></A>
<!-- INDEX BEGIN -->
<UL>
<LI><A HREF="#name">NAME</A></LI>
<LI><A HREF="#synopsis">SYNOPSIS</A></LI>
<LI><A HREF="#description">DESCRIPTION</A></LI>
<LI><A HREF="#usage">USAGE</A></LI>
<LI><A HREF="#arguments">ARGUMENTS</A></LI>
<LI><A HREF="#see also">SEE ALSO</A></LI>
</UL>
<!-- INDEX END -->
<HR>
<P>
<H1><A NAME="name">NAME</A></H1>
<P>stag-flatten.pl - turns stag data into a flat table</P>
<P>
<HR>
<H1><A NAME="synopsis">SYNOPSIS</A></H1>
<PRE>
stag-flatten.pl -c name -c person/name dept MyFile.xml</PRE>
<P>
<HR>
<H1><A NAME="description">DESCRIPTION</A></H1>
<P>reads in a file in a stag format, and 'flattens' it to a tab-delimited
table format. given this data:</P>
<PRE>
(company
(dept
(name "special-operations")
(person
(name "james-bond"))
(person
(name "fred"))))</PRE>
<P>the above command will return a two column table</P>
<PRE>
special-operations james-bond
special-operations fred</PRE>
<P>If there are multiple values for the columns within the node, then the
cartesian product will be calculated</P>
<P>
<HR>
<H1><A NAME="usage">USAGE</A></H1>
<PRE>
stag-flatten.pl [-p PARSER] [-c COLS] [-c COLS] NODE <file></PRE>
<P>
<HR>
<H1><A NAME="arguments">ARGUMENTS</A></H1>
<DL>
<DT><STRONG><A NAME="item_%2Dp%7Cparser_FORMAT">-p|parser FORMAT</A></STRONG><BR>
<DD>
FORMAT is one of xml, sxpr or itext
<P>xml assumed as default</P>
<P></P>
<DT><STRONG><A NAME="item_%2Dc%7Ccolumn_COL1%2CCOL2%2CCOL3%2C%2E%2E">-c|column COL1,COL2,COL3,..</A></STRONG><BR>
<DD>
the name of the columns/elements to write out
<P>this can be specified either with multiple -c arguments, or with a
comma-seperated (no spaces) list of column (terminal node) names after
a single -c</P>
<P></P>
<DT><STRONG><A NAME="item_%2Dn%7Cnest">-n|nest</A></STRONG><BR>
<DD>
if set, then the output will be a compress repeating values into the
same row; each cell in the table will be enclosed by {}, and will
contain a comma-delimited set of values
<P></P></DL>
<P>
<HR>
<H1><A NAME="see also">SEE ALSO</A></H1>
<P><A HREF="./Data/Stag.html">the Data::Stag manpage</A></P>
</BODY>
</HTML>
|