Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

linux test examples

# -gt goes for greater than. 
test 100 -gt 99 && echo "Yes, that's true." || echo "No, that's false."
# Output: Yes, that's true.

test 98 -gt 99 && echo "Yes, that's true." || echo "No, that's false."
# Output: No, that's false.
 
PREVIOUS NEXT
Tagged: #linux #test #examples
ADD COMMENT
Topic
Name
1+5 =