RE: bash while read question

2010-05-06 Thread Evuraan
2010/5/5 CyberLeo Kitsana cyber...@cyberleo.net: On 05/05/2010 08:25 PM, Evuraan wrote: I cant figure out why the variable in in loop2 does not hike to +1? (its a friday, i am dazed, I admit. but this should not be a mystery!) any help would be much appreciated. snip $ cat loop2 #!

Re: bash while read question

2010-05-05 Thread CyberLeo Kitsana
On 05/05/2010 08:25 PM, Evuraan wrote: I cant figure out why the variable in in loop2 does not hike to +1? (its a friday, i am dazed, I admit. but this should not be a mystery!) any help would be much appreciated. snip $ cat loop2 #! /bin/bash date /tmp/somefile b=1 cat /tmp/somefile |