Last active
April 30, 2018 08:19
-
-
Save tuttelikz/53d7c19c77e7642c4502ea95fda95b90 to your computer and use it in GitHub Desktop.
Instructions on how to leave with only specific columns of csv file
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
Print only second and third column of a file and save with a different name: | |
############################################################### | |
awk -F, '{ print $2, $3 }' data_hr.csv > data_hr1.csv | |
############################################################### | |
Only print on terminal without 1st column of a file: | |
############################################################### | |
cut --complement -f 1 -d, data_hr.csv | |
############################################################### |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment