Search Results

Search: Posts Made By: Chubler_XL
64,014
Posted By Chubler_XL
Nice work Scrutinizer. You have inspired me to...
Nice work Scrutinizer. You have inspired me to try and enhance it to also support embeded quotes.

This solution puts 1 csv field per line:

csv.sedsed '
: loop...
64,014
Posted By Chubler_XL
Nope: $ echo '"hello world, test text", aaa,...
Nope:
$ echo '"hello world, test text", aaa, bbb, ccc' | sed 's/,\("[^"]*"\)*/\n\1/g'

"hello world
test text"
aaa
bbb
ccc
64,014
Posted By Chubler_XL
I'd suggest sticking with the CSV parser linked,...
I'd suggest sticking with the CSV parser linked, it deals with a lot of things that come up in CSV files. Like field with imbedded CRs or quotes:

Test,csv,file,"Multi
line field", rest...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 10:46 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy