Skip to content

Instantly share code, notes, and snippets.

@whomwah
Created June 23, 2021 09:07
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 whomwah/f9c1e732bfd2c3cd082f9a4514a645d4 to your computer and use it in GitHub Desktop.
Save whomwah/f9c1e732bfd2c3cd082f9a4514a645d4 to your computer and use it in GitHub Desktop.
Utils #utils

example of chopping massive.csv into smaller mini.csv files of 1000 lines

$ brew install coreutils
$ gsplit -dl 10000 --additional-suffix=.csv massive.csv mini
$
$ ls -A1
mini00.csv
mini01.csv
mini02.csv
mini03.csv
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment