Iterate Over Files in Variable Path (Bash) Iterate Over Files in Variable Path (Bash) shell shell

Iterate Over Files in Variable Path (Bash)


Glob expansion doesn't happen inside quotes (both single and double) in shell.

You should be using this code:

for file in "$path"/*; do     echo "INFO - Checking $file"     [[ -e $file ]] || continuedone