In CSV files, every data set consists of one line (row) of data fields.So each data set is delimited from the next one with a line break.
Unfortunately, there are more than one line break standards.
There is Windows with CRLF (\r\n), older MacOS (before Mac OSX) with only CR (\r), and Unix/Linux with only LF (\n).
CSVFOX supports all three of them.
Using the command linebreak the line break type to read or write can be defined.
The following parameters are supported:
- "w" or
"windows"für the Windows style
- "m" or
"macos"for the Mac OS style
- "l" or
"linux"for the Unix/Linux style.
- csvfox infile.csv +l=windows -l=linux outfile.csv
- Converts the Windows-style line breaks in infile.csv to Linux-style line breaks in outfile.csv.
HintThis command is only relevant for writing CSV output files.
It will be ignored when reading input or merge CSV files, as csvfox always tries to read an input file if at all possible. (is this possible?)