smol_scriptz/eternal_loop_zip.sh

13 lines
223 B
Bash
Raw Permalink Normal View History

2018-12-15 14:28:29 +01:00
#!/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