Last active
October 7, 2018 13:07
-
-
Save rutgerhensel/c6e8a74cb01398a80d2ebe686b48ba53 to your computer and use it in GitHub Desktop.
split and stitch back
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # split a file into 1GB chuncks foo.000 foo.001 etc. | |
| split -b 1GB -d -a 3 my.tar.gz foo. | |
| # to compare | |
| md5sum my.tar.gz | |
| # stitch files back together | |
| cat foo.* > my.tar.gz | |
| # stitch files back together (more specific) | |
| cat foo.{000..012} > my.tar.gz | |
| # to compare | |
| md5sum my.tar.gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment