1
0
mirror of https://codeberg.org/diginaut/dotfiles.git synced 2026-05-06 18:04:10 +02:00

unzip all zip files in current directory to a dir with their filename

This commit is contained in:
2019-03-25 21:26:24 +01:00
parent 634f1da4c8
commit 343958013e
Executable
+11
View File
@@ -0,0 +1,11 @@
#!/bin/bash
find . -type f -name '*.zip' -exec sh -c '
for file do
echo "$file"
zipdir=$(basename "$file" .zip)
#echo "$zipdir $file"
unzip -d "$zipdir" "$file"
read line </dev/tty
done
' sh {} +