---
---

## Set

```shell
# https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html
set -x
set -o xtrace
```

## Random

```shell
echo $(( RANDOM % 10 ))
```

## Print

```shell
printf %s "${MYVAR}"     # Without new line
printf %s\\n "${MYVAR}"  # With new line
```

---
---

## Set

```shell
# https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html
set -e           # Exit on error
set -u           # Throw error on undefined variables
set -o pipefail  # Throw error on command pipe failures
set -x           # Print the commands (-o xtrace)
```

## Random

```shell
echo $(( RANDOM % 10 ))
```

## Print

```shell
printf %s "${MYVAR}"     # Without new line
printf %s\\n "${MYVAR}"  # With new line
```

Add more notes for shell script's set built in
Add more notes for shell script's set built in
