1
0
mirror of https://github.com/aquatix/dotfiles.git synced 2025-12-06 22:55:10 +01: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

11
bin/unzip_all Executable file
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 {} +