The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 07-04-2008
namishtiwari namishtiwari is offline Forum Advisor  
Registered User
  
 

Join Date: Aug 2007
Location: Bangalore
Posts: 377
Quote:
Originally Posted by wanyac2 View Post
please help
shell script that adds two intergers and display answer on screen

Code:
#!/usr/bin/ksh

sum=`expr $1 + $2`
echo " the sum of the values is $sum"
namish@france => ./sample1 10 20
30

thanks
Namish