summaryrefslogtreecommitdiff
path: root/scripts/unzip-all
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2025-06-03 10:30:38 -0400
committerAndrew Opalach <andrew@akon.city> 2025-06-03 10:30:38 -0400
commit68f39eb867c851acb651f79604aba119ecaa9527 (patch)
tree856a3de46de8196736a8fd4c59395d7192aa8353 /scripts/unzip-all
parenta28487fe6fbac72c7b1a752acab42dcc6ab46476 (diff)
downloaddotfiles-68f39eb867c851acb651f79604aba119ecaa9527.tar.gz
dotfiles-68f39eb867c851acb651f79604aba119ecaa9527.tar.bz2
dotfiles-68f39eb867c851acb651f79604aba119ecaa9527.zip
Add some gentoo stuff and update cgit
Diffstat (limited to 'scripts/unzip-all')
-rwxr-xr-xscripts/unzip-all3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/unzip-all b/scripts/unzip-all
new file mode 100755
index 0000000..0982666
--- /dev/null
+++ b/scripts/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"' _ {} \;