From adb63cbc9d94a6786b220c7951c37645ffaafca4 Mon Sep 17 00:00:00 2001 From: Adam Olech Date: Fri, 12 Nov 2021 13:45:02 +0100 Subject: cheatsheets/bash: remove redundant desc --- content/cheatsheets/bash.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'content/cheatsheets/bash.md') 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 -- cgit v1.2.1