Skip to content

Instantly share code, notes, and snippets.

@ype
Created April 18, 2015 13:08
Show Gist options
  • Select an option

  • Save ype/d9181723d1d16f7dbaf2 to your computer and use it in GitHub Desktop.

Select an option

Save ype/d9181723d1d16f7dbaf2 to your computer and use it in GitHub Desktop.
quick replaces headers in a csv file
sed -e '1s/.*\,\{,4\}/col1\,col2\,col3\,col4/g' some_file.csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment