stag-flatten.pl man page on Fedora

Man page or keyword search:  
man Server   31170 pages
apropos Keyword Search (all sections)
Output format
Fedora logo
[printable version]

STAG-FLATTEN(1)	      User Contributed Perl Documentation      STAG-FLATTEN(1)

NAME
       stag-flatten.pl - turns stag data into a flat table

SYNOPSIS
	 stag-flatten.pl -c name -c person/name dept MyFile.xml

DESCRIPTION
       reads in a file in a stag format, and 'flattens' it to a tab-delimited
       table format. given this data:

	 (company
	  (dept
	   (name "special-operations")
	   (person
	    (name "james-bond"))
	   (person
	    (name "fred"))))

       the above command will return a two column table

	 special-operations	 james-bond
	 special-operations	 fred

       If there are multiple values for the columns within the node, then the
       cartesian product will be calculated

USAGE
	 stag-flatten.pl [-p PARSER] [-c COLS] [-c COLS] NODE <file>

ARGUMENTS
       -p|parser FORMAT
	   FORMAT is one of xml, sxpr or itext

	   xml assumed as default

       -c|column COL1,COL2,COL3,..
	   the name of the columns/elements to write out

	   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

       -n|nest
	   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

SEE ALSO
       Data::Stag

perl v5.14.1			  2004-07-02		       STAG-FLATTEN(1)
[top]

List of man pages available for Fedora

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net