1

[wubi] Help in Shell Scripting

view story
linux-howto

http://ubuntuforums.org – Hi guys i just started Shell scripting today and doing a very basic Shell script but i am not getting the correct output i don't now why please help me. I am using Ubuntu 12.10 The code i written is: #!/bin/bash echo Enter Sides read l read b area='expr $l \* $b' echo The area of rectangle with sides $l and $b is $area echo Enter radius read r area='expr $r \* $r \22' area='expr $area / 7' echo The area of circle with radius $r is $area The Output i'm getting is: Enter sides 9 8 The area of rectangle with sides 9 and 8 is expr $l\ *$b Enter Radius 15 The area of the circle with radius 15 (Hardware)