how to run a for loop in bash script code example Example: bash script loop while [ <some test> ] do <commands> done