I'm learning Shell scripting for a diploma in IT I'm currently doing. I'm trying to write a small script that adds two numbers as shown as in one of the tutorials we were given.
echo "Enter two numbers"
read num1 num2
sum = 'expr $num1 + $num2'
echo "The sum is = $sum"
However when I give it the execution permission and run the script, it gives me this error.
sum: =. No such file or directory.
sum: expr $num1 + $num2: No such file or directory
I tried running this on both Ubuntu and Fedora but same error occurs. Can anyone please tell me what I'm missing here?