diff options
| author | Adam Olech <nddr89@gmail.com> | 2021-11-12 13:45:02 +0100 |
|---|---|---|
| committer | Adam Olech <nddr89@gmail.com> | 2021-11-12 13:45:02 +0100 |
| commit | adb63cbc9d94a6786b220c7951c37645ffaafca4 (patch) | |
| tree | 031f2ea139506071f2e36fa222b5ee07be95bdde | |
| parent | 8c57c79c3b8ebc033d5581dbeeca0054714ef25d (diff) | |
cheatsheets/bash: remove redundant desc
| -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 |
