csvfilter icon indicating copy to clipboard operation
csvfilter copied to clipboard

Output file has windows (CRLF) line endings

Open Ashark opened this issue 5 years ago • 2 comments

After processing a normal file with unix line endings, and sending output to a file, I discovered that it has Windows/DOS (CRLF) line endings. Expected result: output file with unix line endings.

Ashark avatar Apr 25 '20 01:04 Ashark

Pipe the csvfilter output to the following Shell command to convert non-Unix line endings to Unix line endings:

csvfilter ... ... ... | tr '\r' '\n' | sed 's/\o015/\n/g'

cf-rohit avatar Jul 11 '23 04:07 cf-rohit

Of course one can use crutches. But there should be normal output in the first place.

Ashark avatar Jul 11 '23 08:07 Ashark