SyntaxFix
Write A Post
Hire A Developer
Questions
The question does not contain a nested loop, just a single loop. But THIS nested version works, too:
# for i in c d; do for j in a b; do echo $i $j; done; done c a c b d a d b