| Main Page -> sread |
sread
Description:
sread is a stanza file reader for AIX. It can be used to pull a particular row and / or column from a stanza file, or it can be used to "flatten" a stanza file into a CSV file or HTML.
The primary value of this utility is to retrieve columns or rows from a stanza file where the row is an entire stanza and a column is every entry of the same name in every stanza.
Here is the help output from the command:
sread - Stanza File Reader
Version: 0.10.0
William Favorite - iSys
Distributed under the BSD license.
Usage:
sread [[-f <filename>] [-r <row>] [-c <columns>] [options]] | --help
-f <filename> The file to parse. If no file is specified, then
stdin is read.
-r <row> Limit output to this row.
-c <columns> Limit output to these columns. <columns> is a comma
separated list of one or more names.
options are:
-a Align columns by spaces, the default is to align by
tabs. Spaces make for human readable output.
-i All text matches should be case insensitive.
-n Display the column names in a header.
-N Display a list of the column names.
-s Sort columns. Default is the order they are "found".
--csv Generate comma separated output, default is to tab.
--zero-missing Fill missing data with 0's.
--space-missing Fill missing data with spaces.
--dot-missing Fill missing data with a "."
--nice-header Make the header clearer with underscore characters.
This option only available with the -n and -a switches.
--version Display version and exit.
--html Generate HTML output.
-h Display this help.
Notes:
+ The -a switch and the --xxx-missing switches are useful in making the
output readable. |
The Distribution:
The distribution is C source.
Latest:
This code is released under the BSD license.
Application Notes: