
17 Jun
2007
17 Jun
'07
6:04 p.m.
"Brandon S. Allbery KF8NH"
On Jun 15, 2007, at 18:37 , Jason Dagit wrote:
I love to see people using Haskell, especially professionally, but I have to wonder if the real tool for this job is sed? :-)
Actually, while sed could do that, it'd be a nightmare. You really want a parser to deal with general CSV like this, and while you can write parsers in sed, you *really* don't want to. :)
sed ':a /,$/!{N;s/\n//;ba}' somefile.csv