Skip to content

Instantly share code, notes, and snippets.

@vikjam
Created March 18, 2017 14:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save vikjam/165da67a1c61c7e1db4468cb4d6b6e11 to your computer and use it in GitHub Desktop.
Save vikjam/165da67a1c61c7e1db4468cb4d6b6e11 to your computer and use it in GitHub Desktop.
Use awk to subset a CSV
# http://stackoverflow.com/questions/6491532/how-to-subset-a-file-select-a-numbers-of-rows-or-columns
cat largefile | awk 'NR >= 10000 && NR <= 100000 { print }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment