3 ms·
I think the article already showed that with the example -F, The problem is commas inside quoted strings, as in the example "Smith, Bob". I believe the field-
by gshubert17 4y ago
I think the article already showed that with the example -F,
The problem is commas inside quoted strings, as in the example "Smith, Bob".
I believe the field-separator option on awk will break the quoted string at the interior comma.
- asdff 4y agoYou could just replace those commas within the quote with some other string or remove them if you wanted with some awk or sed. Here is a somewhat relevant example from stackoverflow: awk -F'"' -v OFS='' '{ for (i=2; i<=NF; i+=2) gsub(",", "", $i) } 1' infile 1. https://unix.stackexchange.com/questions/48672/remove-comma-between-the-quotes-only-in-a-comma-delimited-file https://unix.stackexchange.com/questions/48672/remove-comma-...
- WFHRenaissance 4y agoLOL - you guys actually read the articles?