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
#!
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.
$ cat loop1
#! /bin/bash
date /tmp/somefile
b=1
while read blah; do
let b=(b+1)
done /tmp/somefile
echo variable is
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 |