Skip to content

Instantly share code, notes, and snippets.

@spyesx
Last active March 11, 2018 10:55
Show Gist options
  • Select an option

  • Save spyesx/ad01a6f76eab71316518b4af455eaabd to your computer and use it in GitHub Desktop.

Select an option

Save spyesx/ad01a6f76eab71316518b4af455eaabd to your computer and use it in GitHub Desktop.
Take a folder then Split + DL + Combine + Unzip
#!/bin/bash
# Create a split zip archive
# https://explainshell.com/explain?cmd=zip+-r+-s+300+archive.zip+FolderName%2F
zip -r -s 300 archive.zip FolderName/
#!/bin/bash
# Download split split archive
# https://explainshell.com/explain?cmd=wget+http%3A%2F%2Fdomain.tld%2Farchives%2Farchive.zip
URL=http://domain.tld/archives/archive.z
wget $URL"ip"
for num in 0{1..9} {10..100}
do
wget $URL$num
done
#!/bin/bash
# Combine all split files
# https://explainshell.com/explain?cmd=zip+-FF+archive.zip+--out+output.zip
zip -FF archive.zip --out output.zip
# Unzip archive
unzip output.zip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment