If Then Comparisons Flashcards
1
Q
-eq
A
equal to for numbers
2
Q
==
A
equal to for letters
3
Q
-ne
A
not equal to
4
Q
!==
A
not equal to for letters
5
Q
-lt
A
less than
6
Q
-le
A
less than or equal to
7
Q
-gt
A
greater than
8
Q
-ge
A
greater then or equal to
9
Q
The if statement as the following syntax:
A
if commands; then commands [elif commands; then commands...] [else commands] fi
10
Q
What is $?:
A
Exit status 0-255
11
Q
Exit status 0
A
0 indicates success
12
Q
Exit status 1
A
Any exit status other than 0 means failure