summaryrefslogtreecommitdiff
path: root/extract_zips.sh
blob: 749b6f4ae47ccab96bfe2fdf15d0f9bd45d2a5fb (plain)
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