Next: , Previous: Invoking csv2rec, Up: Invoking the Utilities


17.9 Invoking rec2csv

rec2csv reads the given rec files (or the data in the standard input if no file is specified) and prints out the converted comma-separated-values. Synopsis:

     rec2csv [option]... [rec_file]...

The rec data can be read from files specified in the command line, or from standard input. The program writes the converted data to standard output.

In addition to the common options described earlier (see Common Options) the program accepts the following options.

-t type
--type=type
Type of the records to convert. If no type is specified then the default records (with no name) are converted.
-S
--sort=fields
Sort the output by the comma-separated list of field names fields. This option has precedence to whatever sorting criteria are specified in the corresponding record descriptor with %sort.
-d
--delim=char
Use char as the delimiter character separating fields in the output. Defaults to ,.