News for hackers. Stuff that matters.
Re:The Hidden Gems of Moreutils by o11c on Saturday December 30, 2023 @11:48AM (#38816613)
Or if you need dynamic arguments, you probably want:

    N=9; for ((i=0; i<=N; ++i)); do echo "$i"; done
Re:The Hidden Gems of Moreutils by andrewshadura on Saturday December 30, 2023 @01:44PM (#38817658)
Why use this form of for when you can just use seq and it works in any shell including fish?
Re:The Hidden Gems of Moreutils by o11c on Saturday December 30, 2023 @04:24PM (#38819316)
Because capturing the output of `seq` requires spawning a whole separate process (significant for small sequences) and shoving all the data into a single buffer (significant for large sequences) rather than working incrementally.