3 ms·
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 ech
by cnvogel 13y ago
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-