Skip to content

Instantly share code, notes, and snippets.

@chrishokamp
Created October 17, 2013 11:17
Show Gist options
  • Save chrishokamp/7023165 to your computer and use it in GitHub Desktop.
Save chrishokamp/7023165 to your computer and use it in GitHub Desktop.
add a numbered index column to a .csv using sed
sed = test_csv.csv | sed 'N;s/\n/,/'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment