I want to write a nested for loop that has to work in the bash shell prompt. nested for loop in Single line command.
for i in a b; do echo $i; done
This is not a nested loop, just a single loop. And the nested version works, too:
# for i in a b; do for j in a b; do echo $j; done; done a b a b