In bash, type:
< /etc/resolv.conf grep nameserver
cat f | grep nameserver | otherproc…
< /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...
In bash, type:
(That < is not a prompt, that's the less than symbol)