Created
December 8, 2018 03:50
-
-
Save ariesmcrae/86f8d5d4dc67d05bc42adfbe993910f2 to your computer and use it in GitHub Desktop.
Bash command line unzip (extract using 7z) all zip files into folder (directory) where folder name is the name of zip file
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/sh | |
for zip in *.zip | |
do | |
dirname=`echo $zip | sed 's/\.zip$//'` | |
7z x $zip -o./$dirname | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Useful when you have a large zip file in Synology NAS where Synology uses 7z.