by Bluecobra · 2y ago · 0 comments
How do you tackle this? Would you count the numbers of commas in each line then manually fix the lines that contain more fields?
paragraph titled DSV style. (Yeah esr, not a fan, whatever...)
Csv sucks no matter what, there is no one csv spec. Then even if you assume the file is "MS Excel style csv" you can't validate it conforms. There's a bunch of things the libraries do that cope with at least some of it that you will not replicate with cut or an awk one liner.