This commit is contained in:
2024-11-14 17:01:46 +01:00
+7
View File
@@ -0,0 +1,7 @@
Unzip to a folder with the same name as the file (without the .zip extension)
for f in *.zip; do unzip "$f" -d "${f%.zip}"; done
For just one file (i.e. to use in a function) it would be:
unzip "$1" -d "${1%.zip}"