I have a CSV file with a comma delimiter and need to remove this delimiter in string to manipulate the data.
The file is like :
Col1, Col2, Col3, Col4
100, 08 sciences, "xx, yy, ww", US
110, 06 culture, "abc, ww", US
115, 05 geology, "geology", CA
I need to scan the string to replace the delimiter but don't know how to proceed. I've tried sed 's/","/" "/g' (using Mac OS 10.10)
So when I'm trying to keep some column I can't reach the expected result : cut -d , -f 2,3 myfile.csv > newfile.csv
I got :
08 sciences, "xx
06 culture, "abc
05 geology, "geology"
Instead of
08 sciences, "xx, yy, ww"
06 culture, "abc, ww"
05 geology, "geology"
Any help please ?