mirror of
https://github.com/aquatix/dotfiles.git
synced 2025-12-07 01:15:10 +01:00
unzip all zip files in current directory to a dir with their filename
This commit is contained in:
11
bin/unzip_all
Executable file
11
bin/unzip_all
Executable 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 {} +
|
||||||
Reference in New Issue
Block a user