TIL: read(1) from a distinct file descriptor
and TIL I can read(1) from a distinct file descriptor to avoid having processes in the shell's while loop consume input from the file I pass.
while read -u 8 f; do
...
done 8</path/to/fileI can use any fd (typically > 2)
(via)