Hi, I am relatively new to programming and I need some help with my script.
I need to use a loop to unzip files and folders one at a time from a zip archive.
Something like this would be nice:
Code:
#!/bin/sh
archive=/path/to/file.zip
num=somehowgetthenumberofitemsinarchive
for*((*i=0;i<$num;i++));*do
unzip #insert magic here
echo "Progress = $((i/num*100))%"
done
Help would be appreciated