You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
smol_scriptz/eternal_loop_zip.sh

12 lines
223 B

#!/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