I want to add a row of headers to an existing CSV file, editing in place. How can I do this?
echo 'one, two, three' > testfile.csv
and I want to end up with
column1, column2, column3
one, two, three
(nb changing the initial CSV output is out of my hands)
EDIT: I originally had this as 'using sed' but any standard command will do. The important thing is the file is edited in place, and the line is inserted at the beginning of the file. Thanks,