Skip to content

Instantly share code, notes, and snippets.

@MattSandy
Created April 28, 2015 15:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MattSandy/23fe6c1c1877c412c832 to your computer and use it in GitHub Desktop.
Save MattSandy/23fe6c1c1877c412c832 to your computer and use it in GitHub Desktop.
Split CSV by Column Value
awk -F"," 'NR>1 {print $0 >> ($1 ".csv"); close($1 ".csv")}' file.csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment