Modified Bash Cheatsheet

This commit is contained in:
Jun Wei Woon 2020-07-06 21:00:32 +08:00
parent a0c689bd32
commit b05c0a470e
1 changed files with 12 additions and 10 deletions

View File

@ -129,10 +129,12 @@ fi
``` ```
# Conditions # Conditions
| Operator | Description | | Operator | Description |
|----------|----------------------| |----------|--------------------------|
| -eq | Equal | | -eq | Equal |
| -lt | Less than | | -lt | Less than |
| -ge | Greater than | | -le | Less than or equal to |
| -gt | Greater than |
| -ge | Greater than or equal to |
| == | 2 Strings equal | | == | 2 Strings equal |
| != | 2 Strings not equal | | != | 2 Strings not equal |
| ! | Statement is false | | ! | Statement is false |