I have a bunch of zip files I want to unzip in Linux into their own directory. For example:
a1.zip a2.zip b1.zip b2.zip
would be unzipped into:
a1 a2 b1 b2
respectively. Is there any easy way to do this?
zip files in one operation, rather than one by one? Get multiple files to be extracted into separate folders. Right-click on them, navigate to the 7-Zip pop-up menu, and choose the: Extract to "*\" option .
Add quotes to handle spaces in filename.
for file in *.zip
do
unzip -d "${file%.zip}" "$file"
done
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With