1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-13 18:24:39 +02:00

-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
if [ $NAME -ne $USER ]
then
echo "Your name is your username"
else
echo "Your name isn't your username"
else
echo "Your name is your username"
fi
# There is also conditional execution