mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +00:00
-ne not equal
This commit is contained in:
parent
83b63aab54
commit
7bfbec395a
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user