News for hackers. Stuff that matters.
Re:Useless Use of Cat Award by cnvogel on Wednesday September 11, 2013 @01:24PM (#6368509)
Sure it's possible without running a subprocess, just open the file on some other filedescriptor.

    exec 5<words.txt
    while read line <&5 ; do
        echo "line read: $line"
    done
    exec <&5-

There are no comments on this comment yet.