13 lines
223 B
Bash
13 lines
223 B
Bash
|
#!/bin/bash
|
||
|
INPUT=$1
|
||
|
|
||
|
while true;
|
||
|
do
|
||
|
file=$(zipinfo $INPUT | grep "\--" | awk '{print $9}')
|
||
|
echo "file :" $file
|
||
|
pass=$(echo $file | awk -F"." '{print $1}')
|
||
|
echo "pass: " $pass
|
||
|
unzip -P $pass $INPUT
|
||
|
INPUT=$file
|
||
|
done
|