read_fixed
The read_fixed command is used to convert fixed-format data into CSV. You specify the fields in the fixed-format input that you want to be converted.
See also: write_fixed
Flag |
Req'd? |
Description |
-f fields |
Yes |
Specifies a comma-separated list of fields that you want to convert. Each field consists of a start position in the input, a colon separator and the width of the field. For example: |
-k |
No |
Indicates that you want to keep any trailing spaces in the input values. making the output CSV field values all be of the same length. The default is to remove them. |
The following example reads the fixed_names.dat file:
csvfix read_fixed -f 1:10,11:1 data/fixed_names.dat
which produces:
"Geraldine","F"
"Fred","M"
"Emmylou","F"
Created with the Personal Edition of HelpNDoc: Free Qt Help documentation generator