Modified about and bash cheatsheet pages

This commit is contained in:
Jun Wei Woon 2020-07-07 00:04:32 +08:00
parent 458087399d
commit 21aa1d7aa5
2 changed files with 26 additions and 12 deletions

View File

@ -58,6 +58,11 @@ I have used a few Linux distributions in the past, mainly:
I have developed scripts(Python/Bash) for some of these distributions for automation, which I may share some of the scripts and its use cases in this site. In the screen shot above, there are mini scripts used to display items, for example, the status bar has scripts to display time, volume or music. The lyrics viewer is also another script I developed as I couldn't find any programs online that fits my use case.
### Bash Scripting
Some of the bash scripts I've developed can be found in my dotfiles [here](https://gitlab.com/devoalda/dotdrop-dotfiles/-/tree/master/dotfiles/local/bin). They are some installation scripts, scripts I use daily and scripts I found on the Internet that was useful to my use cases.
_Do check it out!_
# Text Editors/IDEs
Over the years I've spent developing scripts and programs, I have used text editors for different Languages. Here are some of the editors I used in the past

View File

@ -128,18 +128,27 @@ else
fi
```
# Conditions
| 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 |
| 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 |
| -z "$1" * | Check for empty argument |
{{< alert theme="info" dir="ltr" >}}
\* Note the space between the operator and argument
```bash
[ -z "$1" ]
```
{{< /alert >}}
## Condition Usage Examples
``` bash