blob: e903ee7596fd583188bbad97c1cec86ccbfb3543 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/bin/bash
if [ "x$1" = "x-j" ] ; then
switch=-j
shift
fi
IFS='
'
for i in $* ; do
dir="$(basename $i .zip)"
mkdir "$dir"
cd "$dir"
unzip $switch "../$i"
cd ..
rm "$i"
done
|