CSVfox
Get the job done.
 English

±linebreak, ±l

Defining which line break standard will be used (Windows, Linux or MacOS)

Description

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.

Pattern

±l=style ±linebreak=style

The following parameters are supported:

  • "w" or "windows" or "CRLF" or "\r\n" for the Windows style
  • "m" or "macos" or "CR" or "\r" for the old Mac OS style
  • "l" or "linux" or "LF" or "\n" for the Unix/Linux style.
Upper/Lower case will be ignored.

Usage Example

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.

Hint

This 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?)
Under construction, coming soon