Created
April 28, 2015 15:58
-
-
Save MattSandy/23fe6c1c1877c412c832 to your computer and use it in GitHub Desktop.
Split CSV by Column Value
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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