for command shell code example
Example 1: for shell
$ for i in 1 2 3 4 5; do echo "counter: $i"; done
Example 2: for shell
$ for i in `grep -rli enabled=1`; do
sudo sed -i -e '$aclean_requirements_on_remove=1' $i;
done;
Example 3: for shell
#!/bin/bash
for i in 1 2 3 4 5; do
echo "counter: $i"
done