Below is the shell script i have written , I have written a function to add two numbers and calling that function as part of echo statement. But iam not getting the results.
if [ $# -ne 2 ]
echo " Wrong number of arguments. Usage: scriptname number1 number2"
sum=$[ $1 + $2 ]
echo " The Sum of $1 + $2 is : S( add )"
calling the script addnum 10 20
Any help is really appreciated.