Monday, October 28, 2013

TO FIND IF NOS ARE EQUAL OR NOT USING SHELL SCRIPT

#TOPIC :TO FIND IF NOS ARE EQUAL OR NOT IN SHELL SCRIPT
echo "enter a:"
read a
echo "enter b:"
read b
if [ $a -eq $b ]
then
echo " numbers are not equal"
else
echo "nos are equal"
fi

No comments:

Post a Comment