summaryrefslogtreecommitdiff
path: root/unzip_tree.sh
diff options
context:
space:
mode:
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