diff options
Diffstat (limited to 'extract_zips.sh')
-rwxr-xr-x | extract_zips.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/extract_zips.sh b/extract_zips.sh index bf76d10..749b6f4 100755 --- a/extract_zips.sh +++ b/extract_zips.sh @@ -1,10 +1,15 @@ #!/bin/bash +if [ "x$1" = "x-j" ] ; then + switch=-j + shift +fi + for i in $* ; do dir=$(basename $i .zip) mkdir $dir cd $dir - unzip ../$i + unzip $switch ../$i cd .. rm $i done |