Multiline fields echo -smq issue

54 views
Skip to first unread message

marcde...@gmail.com

unread,
May 17, 2017, 6:34:13 AM5/17/17
to csvfix
I want to change the CSV delimiter from comma
to semicolon.
It seems there is a bug with echo -smq -osep ;
if the input file contains multiline fields:
The output doesn't quote these multline fields.

multiline.csv:
batman,"the caped crusader,
scourge of the underworld"
thor,"mighty,
hammer swinging god"

csvfix echo -smq -osep ; multiline.csv
=>
batman;the caped crusader,
scourge of the underworld
thor;mighty,
hammer swinging god

Am I doing something wrong or is this a bug?

This would be the correct expected output:
batman;"the caped crusader,
scourge of the underworld"
thor;"mighty,
hammer swinging god"

Reply all
Reply to author
Forward
0 new messages