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.

4
  • 2
    Given the age of this question I will justify my changing to this as the accepted: a) This answer is much more succinct than Gilles' python, b) ruby is no less portable than python, and c) this also shows how to pass the input/output files. Bravo @luikore, and welcome to Unix & Linux. Please do stick around. Commented Nov 27, 2018 at 2:07
  • one caveat, in the csv, fields must be quoted Commented Dec 24, 2019 at 12:37
  • 1
    @yosefrow No need quoting. I tested the command before I posted this answer. Commented Dec 25, 2019 at 5:33
  • ok should have said "may" then. It didnt work for me until I quoted all fields. Might have to do with my data content Commented Dec 26, 2019 at 7:43