My Tech Notes
Search This Blog
shell script: nested for loops in one line
for a in 1 2 3; do for b in 4 5 6; do echo "$a $b"; done; done
1 4 1 5 1 6 2 4 2 5 2 6 3 4 3 5 3 6
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment