Thursday, January 29, 2015

Inline for loops in bash...

...will make you happy. Here's a code snippet:

$ for i in a b c; do echo "file"$i".txt"; done
filea.txt
fileb.txt
filec.txt

No comments:

Post a Comment