Skip to content

Instantly share code, notes, and snippets.

@jeffreymorganio
Created March 12, 2015 18:42
Show Gist options
  • Select an option

  • Save jeffreymorganio/7abcaf932c3e792ef8aa to your computer and use it in GitHub Desktop.

Select an option

Save jeffreymorganio/7abcaf932c3e792ef8aa to your computer and use it in GitHub Desktop.
Add a CSV heading line by prepending the heading to the data.
echo -e '"Column 1 Name","Column 2 Name","Column 3 Name"' | cat - file.csv > file-with-heading.csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment