Skip to content

Instantly share code, notes, and snippets.

@mapcloud
Created July 10, 2017 15:51
Show Gist options
  • Save mapcloud/ab5f844574fdd7a3d21e1037c94e0806 to your computer and use it in GitHub Desktop.
Save mapcloud/ab5f844574fdd7a3d21e1037c94e0806 to your computer and use it in GitHub Desktop.
How to split a very large text file into smaller files
awk '{outfile=sprintf("fileName%02d.tsv",NR/100000+1);print > outfile}' fileName_of_really_big_textfile.tsv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment