Update
This commit is contained in:
parent
073078cd22
commit
bbba84e495
18
sh.md
18
sh.md
|
@ -360,14 +360,6 @@ if [ -e "file.txt" ]; then
|
||||||
fi
|
fi
|
||||||
```
|
```
|
||||||
|
|
||||||
Numeric calculations
|
|
||||||
--------------------
|
|
||||||
|
|
||||||
```bash
|
|
||||||
$((RANDOM%=200)) # Random number 0..200
|
|
||||||
$((a + 200)) # $ is optional
|
|
||||||
```
|
|
||||||
|
|
||||||
Arrays
|
Arrays
|
||||||
------
|
------
|
||||||
|
|
||||||
|
@ -441,6 +433,16 @@ matches.
|
||||||
Miscellaneous
|
Miscellaneous
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
|
### Numeric calculations
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$((a + 200)) # Add 200 to $a
|
||||||
|
```
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$((RANDOM%=200)) # Random number 0..200
|
||||||
|
```
|
||||||
|
|
||||||
### Subshells
|
### Subshells
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|
Loading…
Reference in New Issue