diff options
Diffstat (limited to 'content/cheatsheets/bash.md')
| -rw-r--r-- | content/cheatsheets/bash.md | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/content/cheatsheets/bash.md b/content/cheatsheets/bash.md index 54c9bb6..a00ebb9 100644 --- a/content/cheatsheets/bash.md +++ b/content/cheatsheets/bash.md @@ -18,18 +18,18 @@ disable_share = true ## Integer -|op | desc | example | -|---|-------------------------------------------------------|----------------------| -|-eq|is equal to |`if [ "$a" -eq "$b" ]`| -|-ne|is not equal to |`if [ "$a" -ne "$b" ]`| -|-gt|is greater than |`if [ "$a" -gt "$b" ]`| -|-ge|is greater than or equal to |`if [ "$a" -ge "$b" ]`| -|-lt|is less than |`if [ "$a" -lt "$b" ]`| -|-le|is less than or equal to |`if [ "$a" -le "$b" ]`| -|< |is less than (within double parentheses) |`(("$a" < "$b"))` | -|<= |is less than or equal to (within double parentheses) |`(("$a" <= "$b"))` | -|> |is greater than (within double parentheses) |`(("$a" > "$b"))` | -|>= |is greater than or equal to (within double parentheses)|`(("$a" >= "$b"))` | +| op | desc | example | +| --- | ------------------------------------------------------- | ---------------------- | +| -eq | is equal to | `if [ "$a" -eq "$b" ]` | +| -ne | is not equal to | `if [ "$a" -ne "$b" ]` | +| -gt | is greater than | `if [ "$a" -gt "$b" ]` | +| -ge | is greater than or equal to | `if [ "$a" -ge "$b" ]` | +| -lt | is less than | `if [ "$a" -lt "$b" ]` | +| -le | is less than or equal to | `if [ "$a" -le "$b" ]` | +| < | is less than | `(("$a" < "$b"))` | +| <= | is less than or equal to | `(("$a" <= "$b"))` | +| > | is greater than | `(("$a" > "$b"))` | +| >= | is greater than or equal to | `(("$a" >= "$b"))` | ## File |
