loop in linux script code example
Example 1: bash script loop
while [ <some test> ]
do
<commands>
done
Example 2: bash for loop
for FILE in $(ls -A); do la $FILE; done
while [ <some test> ]
do
<commands>
done
for FILE in $(ls -A); do la $FILE; done