this post was submitted on 05 Jan 2026
18 points (95.0% liked)
Linux
11584 readers
394 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
Anything immediately in the position after
foris an assignment of whatever you put there as a temporary variable inside the loop. You can call it whatever you want. The "i" is just used a lot in examples in programming for "item" or "iterate", but you can literally call it anything. Anything that refers to it later will have a single item from the list in $LIST assigned to it for each run through the loop.