by car · 3y ago · 0 comments
I resorted to pandas, where the CSV import has parameters for the thousands and decimal separators.
Also see AWK HN post from 2021 [1].
https://stackoverflow.com/questions/29642102/how-to-make-awk...
$ cat quoted.csv
"Smith, Bob",42
$ awk -F, '{ print $1 }' quoted.csv
"Smith # you want to print the first field: Smith, Bob
$ goawk -i csv '{ print $1 }' quoted.csv
Smith, Bob # that's better!