Hai Evry1 SUB: Shell Scripting SHELL : bash
i wantd to add two nos and store their result in a variable.i did this. a=5 b=6 c='echo $a + $b | bc' echo $c i am tryin to pipe the output of 'echo $a + $b' to bc. So that bc would get 5 + 6 as i/p. and c shld get the value 11. But , the o/p : echo $a + $b | bc. Its seems tht the variable c has stored the command as a string!!!!whyz is this happng???isn't is possible to assign the o/p to a variable???? Please help. hashir ------------------------------------------------------------------------- Do What U Must not Must U what. ******* ------------------------------------------------------------------------- _________________________________________________________________ Easiest Money Transfer to India. Send Money To 6000 Indian Towns. http://go.msnserver.com/IN/48198.asp Easiest Way To Send Money Home!
