0

I have a script of my own and I don't know how to copy a header from a csv file into another csv file.

Thanks in advance!

0

1 Answer 1

0

CSV, comma separated values, is just a simple text file. Commas are used to indicate columns, and end-of-line (LF, CR or both) indicate end of row.

Just open in a text editor and copy/paste to another file. Tabbed text editors such as Kate or Notepad++ make this easier.

2
  • Thanks for your suggestion but I wanted to automate this process by including it in my script. Commented Mar 13, 2020 at 16:28
  • You should modify your question to explain that you need to do this through a bash script. Commented Mar 13, 2020 at 17:12

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .