I am creating bash script and everything works fine except for this:
read -p "Write directory names:" -a dir
for f in /home/user/downloads/${dir[@]}/*.zip; do
    if [ -f $f ]; then
        #do something
    else 
        #do something else
    fi
done
I want to check if .zip file exists inside a directory; for multiple directories one after another.
 
    