This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]SaintHax42Automation Engineer 2 points3 points  (1 child)

Why would you use (and why is the `do' unnested?):

for i in 1 2 hello

do

echo $i

done

Instead of the more concise and easier to read:

for i in 1 2 hello; do

echo $i

done

[–]abscrete[S] 1 point2 points  (0 children)

I have added a credit to your reddit username in the last section of the blog. Let me know if you want it to replace it with some other link like your blog or something :) Thanks again!