Hi,
i need to compare two variables by using if statement
if [ $var1 -ne $var2 ]
then
echo "$var1"
else
echo "$var2"
fi
where -ne
is used for not equal to but this is not working and giving me a syntax error. can anybody tel me how use not equal to with 'if' in ksh
thanks