Jeremy Wininger
Monday, October 14, 2024
Unzip a bunch of archives into their own directories - Linux
I was able to extract a few hundred zip files into their own directories (based on the zip file's name) with this shell script.
#!/bin/sh
for file in *.zip
do
unzip -d "${file%.zip}" "$file"
done
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment