Skip to content

Instantly share code, notes, and snippets.

@nghuuphuoc
Created November 12, 2013 09:54
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 nghuuphuoc/7428288 to your computer and use it in GitHub Desktop.
Save nghuuphuoc/7428288 to your computer and use it in GitHub Desktop.
Split and join files on Mac/Linux
// Split file
$ split -b<size>m <bigFileName> <smallerFileName>
// Join files
$ cat <smallerFileName>* > <bigFileName>
For example:
$ split -b20m big.zip smaller.zip
$ cat smaller.zip* > big.zip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment