I am trying to run multiple loops in bash. For example there are 3 file formats f1=*.txt f2=*.png and f3=*.jpg
and i am trying to give the three different commands for each as
for f1 in *.txt; do echo $f1; command
exit 0
for f2 in *.png; do echo $f2; command
exit 0
for f3 in *.jpg; do echo $f3; command
exit 0
but no success, I am getting a broken syntax. I replaced exit 0 with && but no success. Any idea?