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

@ -128,16 +128,18 @@ else
fi
```
# Conditions
| Operator | Description |
|----------|----------------------|
| -eq | Equal |
| -lt | Less than |
| -ge | Greater than |
| == | 2 Strings equal |
| != | 2 Strings not equal |
| ! | Statement is false |
| -d | Directory is present |
| -e | File is present |
| Operator | Description |
|----------|--------------------------|
| -eq | Equal |
| -lt | Less than |
| -le | Less than or equal to |
| -gt | Greater than |
| -ge | Greater than or equal to |
| == | 2 Strings equal |
| != | 2 Strings not equal |
| ! | Statement is false |
| -d | Directory is present |
| -e | File is present |
## Condition Usage Examples
``` bash