this post was submitted on 05 Jan 2026
18 points (95.0% liked)
Linux
11067 readers
938 users here now
A community for everything relating to the GNU/Linux operating system (except the memes!)
Also, check out:
Original icon base courtesy of lewing@isc.tamu.edu and The GIMP
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
https://www.gnu.org/software/bash/manual/bash.html#Looping-Constructs
Reading this part of the Bash manual for the third time today, I think I finally understood it better, thanks to this part in particular:
In other words, whatever follows
inis half expected to result in a list of words (items), each for which command is then executed. Beyond that, I guess I'd have to simply look at the logic behind for-expressions.Thanks!
Yeah it's really not complicated, and it's nearly plain English. For item in things, do action.