a=0 b=0 while [ $a -le 2 ] do (while [ $b -lt 10 ] do echo b=$a$b b=$(($b+1)) done) a=$(($a+1)) done