diff options
| author | 2025-10-17 12:22:00 -0400 | |
|---|---|---|
| committer | 2025-10-17 12:32:42 -0400 | |
| commit | 544da1ba50d9cbf51a18ca0abf1db66b3baa7460 (patch) | |
| tree | 1caa87664ea4937c5f4e6e8dc83c49b3132ddd70 /scripts/desktop/unzip-all | |
| parent | 85a47287e56ba9100420246531ebea5996cc0486 (diff) | |
| download | dotfiles-544da1ba50d9cbf51a18ca0abf1db66b3baa7460.tar.gz dotfiles-544da1ba50d9cbf51a18ca0abf1db66b3baa7460.tar.bz2 dotfiles-544da1ba50d9cbf51a18ca0abf1db66b3baa7460.zip | |
Gentoo desktop
Diffstat (limited to 'scripts/desktop/unzip-all')
| -rwxr-xr-x | scripts/desktop/unzip-all | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/desktop/unzip-all b/scripts/desktop/unzip-all new file mode 100755 index 0000000..0982666 --- /dev/null +++ b/scripts/desktop/unzip-all @@ -0,0 +1,3 @@ +#! /usr/bin/env sh +# https://askubuntu.com/a/518376 +find "$1" ! -path "${1%/}/$(basename $PWD)/*" -name '*.zip' -exec sh -c 'x=${1%.*}; unzip -d "${x##*/}" "$1"' _ {} \; |