The For loop is the most used looping construct when there is a specified set to iterate over.
CREATED2017-08-23 16:33:59.0
00-2A-7C
UPDATED2017-08-23 16:34:21.0
The While, Do... Done!
x=1 while [ x -le 10 ] <-- Make sure there is a space between the brackets and anything else do # some processing done
The while do done is another one of the useful loop constructs in bash. When the loop is bases on a condition or breaking out will be determined during the loop, the while, do done is your construct.