bash for each 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 step
for i in `seq 0 2 10`; do echo $i; done
for i in {1..5}
do
echo "Welcome $i times"
done
for i in `seq 0 2 10`; do echo $i; done