Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • 1
    Why sed and not awk (or perl or python or ...)? Commented Feb 6, 2013 at 21:47
  • 2
    Woaw! Once again someone reinvented the wheel and now craig, you are screwed :) I don't know from where your file comes from, but you'd better change the program generating that crap to make it generate proper csv. Plus, I guess that you won't just keep the csv somewhere forever: you will process it using whatever you want and if "whatever" is not gnuplot or libreoffice calc, you'd better use this whatever directly to parse that broken format. Oh, one last thing: if the guy who wrote the program really wanted to save space, he would just have zipped it or used a binary format (such as HDF5). Commented Feb 7, 2013 at 9:37