How do I ignore the case in an if condition..?
EDIT: I put this in the wrong board...this is a linux script.
if [ "bob" = "Bob" ]
then
echo "Same name."
else
echo "Different name."
fi
How do I ignore the case in an if condition..?
EDIT: I put this in the wrong board...this is a linux script.
if [ "bob" = "Bob" ]
then
echo "Same name."
else
echo "Different name."
fi
one idea would be to convert both to upper or lower case then compare