for bash shell code example
Example 1: for shell
$ for i in 1 2 3 4 5; do echo "counter: $i"; done
Example 2: for shell
#!/bin/bash
for i in 1 2 3 4 5; do
echo "counter: $i"
done
$ for i in 1 2 3 4 5; do echo "counter: $i"; done
#!/bin/bash
for i in 1 2 3 4 5; do
echo "counter: $i"
done