-ne not equal

This commit is contained in:
Samuel Marks 2014-08-23 16:54:13 +10:00
parent 83b63aab54
commit 7bfbec395a

View File

@ -73,9 +73,9 @@ echo Hello, $NAME!
# use 'man test' for more info about conditionals # use 'man test' for more info about conditionals
if [ $NAME -ne $USER ] if [ $NAME -ne $USER ]
then then
echo "Your name is your username"
else
echo "Your name isn't your username" echo "Your name isn't your username"
else
echo "Your name is your username"
fi fi
# There is also conditional execution # There is also conditional execution