On 13/06/11 12:54, Brett Parker wrote:
On 13 Jun 12:35, Ted Harding wrote:
On 13-Jun-11 11:02:16, Brett Parker wrote:
I would *never* suggest parsing csv in bash. Ever. Python's csv module is lovely, and perl's DBD::CSV is fine. Awk hasn't got a csv parser,
Err, I respectfully disagree ... (in other words, b*****ks)!
[snip]
I respectfully call you a fucking moron and ask you what happens if your csv does something like:
People, please. I'm glad I started this now!
on commas is no longer funny. And when people turn up on a list with a lot of technical people on it suggesting doing just this it makes me Very Angry. And you don't want to see me angry.
Do you turn green? ;-)
I always preferred TSV or fixed width data rather than CSV because of the possibility of the data containing commas. Mine does here.
I'm away from the keyboard this afternoon and when I return I'll be looking at the website that Richard mentioned.
While I'm away, can you play nicely please?