Last active
March 11, 2018 10:55
-
-
Save spyesx/ad01a6f76eab71316518b4af455eaabd to your computer and use it in GitHub Desktop.
Take a folder then Split + DL + Combine + Unzip
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
| #!/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/ |
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
| #!/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 |
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
| #!/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