News for hackers. Stuff that matters.
Re:A Terminal Case of Linux by tolciho on Monday May 29, 2023 @02:11PM (#36116409)
Sometimes you can prefix with "< file". Sometimes, not so much.

< /etc/passwd while IFS= read line || [ -n "$line" ]; do printf '%s\n' "$line"; done

Meanwhile, in ZSH...

Meanwhile, in languages that do not need IFS= and || [ -n "$line" ] checks...

There are no comments on this comment yet.