Skip to content

Instantly share code, notes, and snippets.

@rutgerhensel
Last active October 7, 2018 13:07
Show Gist options
  • Select an option

  • Save rutgerhensel/c6e8a74cb01398a80d2ebe686b48ba53 to your computer and use it in GitHub Desktop.

Select an option

Save rutgerhensel/c6e8a74cb01398a80d2ebe686b48ba53 to your computer and use it in GitHub Desktop.
split and stitch back
# 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