1
1
mirror of https://github.com/namibia/awesome-cheatsheets.git synced 2024-12-28 12:10:46 +00:00

Corrected the bash cheatsheet

- modified the condition to verify if two values are identical
This commit is contained in:
Antonio Riccio 2019-08-01 11:06:56 +01:00
parent b5923b7b59
commit 1dfacb674a

View File

@ -219,12 +219,12 @@ statement1 || statement2 # or operator
# STRINGS
str1 = str2 # str1 matches str2
str1 != str2 # str1 does not match str2
str1 < str2 # str1 is less than str2 (alphabetically)
str1 > str2 # str1 is greater than str2 (alphabetically)
-n str1 # str1 is not null (has length greater than 0)
-z str1 # str1 is null (has length 0)
str1 == str2 # str1 matches str2
str1 != str2 # str1 does not match str2
str1 < str2 # str1 is less than str2 (alphabetically)
str1 > str2 # str1 is greater than str2 (alphabetically)
-n str1 # str1 is not null (has length greater than 0)
-z str1 # str1 is null (has length 0)
# FILES