String conditions
Condition | Description |
---|---|
[[ -z STR ]] |
Empty string |
[[ -n STR ]] |
Not empty string |
[[ STR == STR ]] |
Equal |
[[ STR = STR ]] |
Equal (Same above) |
[[ STR < STR ]] |
Less than (ASCII) |
[[ STR > STR ]] |
Greater than (ASCII) |
[[ STR != STR ]] |
Not Equal |
[[ STR =~ STR ]] |
Regexp |
Comments