Skip to content

Instantly share code, notes, and snippets.

@WilliamQLiu
Created February 8, 2015 21:50
Show Gist options
  • Save WilliamQLiu/327d168ebd0626111971 to your computer and use it in GitHub Desktop.
Save WilliamQLiu/327d168ebd0626111971 to your computer and use it in GitHub Desktop.
Split large file by number of lines
$split -l 1000000 data data.
# Will return files: data.aa, data.ab, data.ac, etc. each with the number of lines specified (one million in this case)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment