running a for loop in bash code example
Example 1: for loop in shell script
for i in {1..5}
do
echo "Welcome $i times"
done
Example 2: bash for loop
for FILE in $(ls -A); do la $FILE; done
for i in {1..5}
do
echo "Welcome $i times"
done
for FILE in $(ls -A); do la $FILE; done