String expression Flashcards
1
Q
string
A
string is not null
2
Q
-n string
A
Length of string is greater than 0
3
Q
-z string
A
Length of string is 0
4
Q
string1 = string2
string1 == string2
A
string1 and string2 are equal. == is used for POSIX compliance
5
Q
string1 != string2
A
string1 and string2 are not equal
6
Q
string1 > string2
A
string1 sorts after string2
7
Q
string1 < string2
A
string1 sorts before string2