Created
May 10, 2017 13:22
-
-
Save vsimko/7b8ed86419943625a0368d02390a3b29 to your computer and use it in GitHub Desktop.
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
# convert ";" to "," | |
tr ";" "," < input.csv > output.csv | |
# list of columns with associated numbers | |
head -1 commadata.csv | tr ',' '\n' | nl | |
# project columns 1,2,163-174 into a new file | |
cut -d',' -f 1,2,163-174 commadata.csv > SOC.csv | |
# random subsample of 100 rows (not tested) | |
sort -R input.csv | head -100 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment