summaryrefslogtreecommitdiff
path: root/unzip_tree.sh
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2025-07-26 03:57:54 +0100
committerIan C <ianc@noddybox.co.uk>2025-07-26 03:57:54 +0100
commit2450a61db55c13ffc5573e2768506d6dc7f1d8db (patch)
treede8dbc7f80c2d17f8b8534e5b36831ceaa8c1ea9 /unzip_tree.sh
parentd1718c3e581271de9014ab2f2b41e69c9899f4ac (diff)
Added unzip_tree.sh and changed mcp and mmv so they quote filenamesHEADmaster
Diffstat (limited to 'unzip_tree.sh')
-rwxr-xr-xunzip_tree.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/unzip_tree.sh b/unzip_tree.sh
new file mode 100755
index 0000000..4ea0ae9
--- /dev/null
+++ b/unzip_tree.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+IFS='
+'
+
+for i in $(find . -iname "*.zip") ; do
+ dn=$(dirname "$i")
+
+ cd "$dn"
+ unzip -oj $(basename $i)
+ cd -
+done