Skip to content

Instantly share code, notes, and snippets.

@mperlet
Created June 12, 2017 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 mperlet/9635f19e78c564358973337b2ae25116 to your computer and use it in GitHub Desktop.
Save mperlet/9635f19e78c564358973337b2ae25116 to your computer and use it in GitHub Desktop.
FILE="myfile.txt"
split -l $(( $(wc -l "$FILE" | cut -d" " -f1) / 2 )) "$FILE" "$FILE_split_"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment