diff options
author | Ian C <ianc@noddybox.co.uk> | 2025-07-26 03:57:54 +0100 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2025-07-26 03:57:54 +0100 |
commit | 2450a61db55c13ffc5573e2768506d6dc7f1d8db (patch) | |
tree | de8dbc7f80c2d17f8b8534e5b36831ceaa8c1ea9 /unzip_tree.sh | |
parent | d1718c3e581271de9014ab2f2b41e69c9899f4ac (diff) |
Diffstat (limited to 'unzip_tree.sh')
-rwxr-xr-x | unzip_tree.sh | 12 |
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 |