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

17.9 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 in the standard input. The program echoes the converted data in the standard output.

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

-t type
Type of the records to convert. If no type is specified then the default records (with no name) are converted.
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.