Skip to content

Instantly share code, notes, and snippets.

@tuttelikz
Last active April 30, 2018 08:19
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 tuttelikz/53d7c19c77e7642c4502ea95fda95b90 to your computer and use it in GitHub Desktop.
Save tuttelikz/53d7c19c77e7642c4502ea95fda95b90 to your computer and use it in GitHub Desktop.
Instructions on how to leave with only specific columns of csv file
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