Assuming that the inputs are given as command line arguments and if two numbers are not given show a error message as "command line arguments are missing".
DESCRIPTION:
This script will read two integer value from users and give output as sum of two values
SCRIPT:
#!/bin/bash
echo -n "Enter the first number : "
read num1
echo -n "Enter the second number : "
read num2
sum=`expr $num1 + $num2`
echo "sum of two value is $sum"
expr $num1 + $num2echo "the sum of $num1 and $num2 is $sum"