I have an input CSV file containing something like:
SD-32MM-1001,"100.00",4/11/2012
SD-32MM-1001,"1,000.00",4/12/2012
I need to take out the formatting of numerical values for some other processing pipeline (postgresql COPY
).
Is there a text filter that will separate out the columns on FS without peeking inside quoted strings? Presently I get:
$ tail +2 /tmp/foo.csv|awk -F, '{print NF}'
3
4
And similarly partial values for cut
I have to stay on Linux.
Thanks.