Lab 1
Lab 1
# Calculate sum
sum=$(( $num1 + $num2 ))
----------------------------------------------
Q3 write a program to find greatest number in two digit?
echo "a shell script to find out the large between two number."
echo -n "Enter First number"
read n1
echo -n "Enter Second number"
read n2
if test $fst_num -gt $snd_num
then
echo $fst_num is greater than $snd_num.
else
echo $snd_num is greater than $fst_num.
fi