3 ms·
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
by tolciho 3y ago
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...