Bash read loop does not stop after EOF – unix.stackexchange.com

I want to read a large text data file, line by line. Sample code: lines=0 while IFS=$' \t\n' do lines=$(($lines+1)) read val echo "lines=$lines val=$val" done < myfile Problem: the ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "Bash read loop does not stop after EOF – unix.stackexchange.com"