dirfile2ascii(1) | GETDATA | dirfile2ascii(1) |
dirfile2ascii — output dirfile database vectors as ASCII text
dirfile2ascii [ OPTION ]... DIRFILE [ [ -a | -A | -e | -E | -F | -g | -G | -o | -i | -u | -x | -X ] FIELD ]...
Fetches data from a dirfile(5) database specified by DIRFILE and writes it as ASCII to standard output. Any number of vector FIELDs may be specified. Each specified field is printed in a separate column.
Mandatory arguments to long options are mandatory for short options too.
In addition to the above, each FIELD argument may be preceded by a short option, one of: -a, -A, -e, -E, -F, -g, -G, -i, -o, -u, -x, -X, indicating the conversion to be used. See printf(3) for the meaning of these conversion specifiers. The output flags, width, and precision may be specified by using --precision. If no conversion specifier is given, %f is used.
For conversion specifiers %a, %A, %e, %E, %f, %F, %g, %G, data is read from the dirfile as double precision floats. For conversion specifier %i, data is read as 64-bit signed integers. For conversion specifiers %o, %u, %x, %X, data is read as 64-bit unsigned integers.
No native support for printing complex data is provided. This may be worked around by using dirfile(5) representation suffixes. For example, the command
will print the real and imaginary parts of the complex valued field FIELD in the first and second columns, respectively.
dirfile2ascii was written by Matthew Truch and D. V. Wiebe.
Please send reports of bugs to getdata-devel@lists.sourceforge.net
The GetData home page: <http://getdata.sourceforge.net/>
Copyright © 2010 Matthew Truch.
dirfile2ascii is licenced under the GNU LPGL version 2.1 or later.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
21 February 2012 | Version 0.8.0 |