I would like to learn how to perform a while loop while inside a while loop. I have written a small bit of script that I would love to learn to simplify. Any help is appreciated.
-Thanks
Dave
-Thanks
Dave
Code:
#!/bin/bash
a="0"
b="0"
while [ $a -lt 10 ]
do
echo The a variable is $a and the b variable is $b.
a=$[$a+1]
done
##########
a="0"
b="5"
while [ $a -lt 10 ]
do
echo The a variable is $a and the b variable is $b.
a=$[$a+1]
done