bash:cheat_sheet
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
bash:cheat_sheet [2021/01/26 11:55] – [String Operators] peter | bash:cheat_sheet [2021/01/26 11:55] (current) – [String Operators] peter | ||
---|---|---|---|
Line 205: | Line 205: | ||
The complete list of bash 4.2 string operators: | The complete list of bash 4.2 string operators: | ||
- | |||
- | |-z STRING|True if string is empty.| | ||
- | |-n STRING|True if string is not empty.| | ||
- | |STRING|::: | ||
- | |STRING1 = STRING2|True if the strings are equal.| | ||
- | |STRING1 != STRING2|True if the strings are not equal.| | ||
- | |STRING1 < STRING2|True if STRING1 sorts before STRING2 lexicographically.| | ||
- | |STRING1 > STRING2|True if STRING1 sorts after STRING2 lexicographically.| | ||
<code bash> | <code bash> |
bash/cheat_sheet.1611662115.txt.gz · Last modified: 2021/01/26 11:55 by peter