Bash read loop does not stop after EOF – unix.stackexchange.com 10:40 Posted by Unknown No Comments 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 Google Facebook Twitter More Digg Linkedin Stumbleupon Delicious Tumblr BufferApp Pocket Evernote Unknown Artikel TerkaitWhy has the Brazilian currency been changed so often throughout its history? – history.stackexchange.comWhy it seems that font sizes are quantized in typography? – tex.stackexchange.comWhy do convex lenses not disperse light like prisms, given that entry and exit points aren't parallel? – physics.stackexchange.comLimiting factors for high altitude planes (e.g: U2 or SR71) going higher? – aviation.stackexchange.comZener Diode + fuse overvoltage protection for LEDs with constant current driver- fast or slow blow fuse? – electronics.stackexchange.comWhich word begins with "y" and looks like an axe in this picture? – english.stackexchange.com
0 Comment to "Bash read loop does not stop after EOF – unix.stackexchange.com"
Post a Comment