Modified about and bash cheatsheet pages
This commit is contained in:
parent
458087399d
commit
21aa1d7aa5
|
@ -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
|
||||
|
|
|
@ -129,7 +129,7 @@ fi
|
|||
```
|
||||
# Conditions
|
||||
| Operator | Description |
|
||||
|----------|--------------------------|
|
||||
|-----------|--------------------------|
|
||||
| -eq | Equal |
|
||||
| -lt | Less than |
|
||||
| -le | Less than or equal to |
|
||||
|
@ -140,6 +140,15 @@ fi
|
|||
| ! | 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
|
||||
|
|
Loading…
Reference in New Issue