Skip to content

Instantly share code, notes, and snippets.

@mlevans
Created August 10, 2012 22:58
Show Gist options
  • Save mlevans/3318783 to your computer and use it in GitHub Desktop.
Save mlevans/3318783 to your computer and use it in GitHub Desktop.
Get a chunk of 100,000 lines from a text file (from line 500000)
head -n 500000 larger_file.txt | tail -n 100000 > smaller_file.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment