4 ms·
For TSV, coreutils, awk, etc are nice to work with for sure but for CSV not so much.
by Scarbutt 7y ago
For TSV, coreutils, awk, etc are nice to work with for sure but for CSV not so much.
- ISL 7y agoAt the risk of being flippant: sed 's/,/\t/g'
- bbernoulli 7y agoAnd hope you don't have any commas into your data?
- ISL 7y agoIn my line of work, that's an excellent assumption.
- misterdoubt 7y agoMust be nice to start work with clean data. Allow me to assure you that there are many, many others who don't have the luxury.
- Something1234 7y agoawk -F, ? Until you start dealing with quotes.
- boring_twenties 7y agoperl -MText::CSV will take care of that.