Skip to content

Instantly share code, notes, and snippets.

@jaderabbit
Created October 18, 2018 16:49
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 jaderabbit/4d4b406477a7a6e32d9f7137bc74e8b4 to your computer and use it in GitHub Desktop.
Save jaderabbit/4d4b406477a7a6e32d9f7137bc74e8b4 to your computer and use it in GitHub Desktop.
split files based on %
split -l $[ $(wc -l filename|cut -d" " -f1) * percentage / 100 ] filename
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment