if.....else in bash shell

p7.sh

#!/bin/bash

echo "Enter a: "
read a
echo "Enter b: "
read b

if test $a == $b ;
then
        echo "a is equal b"
else
        echo "Not equal"
fi


Post a Comment

Previous Post Next Post