You're replying to a comment by dj.

December 09, 2013, 19:51

Cam's could also be written:

while read -r line <&3; do
# do stuff here
done 3< input_file.txt

I don't believe the explicit close is necessary.
I added lsof -c "${0##*/}" >log"${id}" in and outside the
loop and fd3 was not present after the while.

Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

Type the word "halflife3_325": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.