1 2 3 4 5 6 7 8 9 10 11 12 13 14 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 $switch ../$i cd .. rm $i done