1
1
mirror of https://github.com/namibia/awesome-cheatsheets.git synced 2024-12-18 16:41:58 +00:00

Bash: operators need spaces around them

This commit is contained in:
Julien Le Coupanec 2018-02-03 20:02:01 +00:00
parent 1b63ec86e7
commit a4e4b2fff5
2 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
# Awesome Cheatsheets
> Useful cheatsheets to save you time. 🚀
> Useful cheatsheets with everything you should know in one single-file. 🚀
[![forthebadge](http://forthebadge.com/images/badges/as-seen-on-tv.svg)](http://forthebadge.com)

View File

@ -212,10 +212,10 @@ statement1 || statement2 # or operator
-a # and operator inside a test conditional expression
-o # or operator inside a test conditional expression
str1=str2 # str1 matches str2
str1!=str2 # str1 does not match str2
str1<str2 # str1 is less than str2
str1>str2 # str1 is greater than str2
str1 = str2 # str1 matches str2
str1 != str2 # str1 does not match str2
str1 < str2 # str1 is less than str2
str1 > str2 # str1 is greater than str2
-n str1 # str1 is not null (has length greater than 0)
-z str1 # str1 is null (has length 0)