Adding comments section
Single line and multi-line comments are added.
This commit is contained in:
parent
e780580524
commit
e2d2eef9c2
16
bash.md
16
bash.md
|
@ -172,6 +172,22 @@ DIR=${SRC%$BASE} #=> "/path/to" (dirpath)
|
||||||
| `${FOO/%from/to}` | Replace suffix |
|
| `${FOO/%from/to}` | Replace suffix |
|
||||||
| `${FOO/#from/to}` | Replace prefix |
|
| `${FOO/#from/to}` | Replace prefix |
|
||||||
|
|
||||||
|
### Comments
|
||||||
|
|
||||||
|
`# Single line comment`
|
||||||
|
```bash
|
||||||
|
: '
|
||||||
|
This is a
|
||||||
|
multi line
|
||||||
|
comment
|
||||||
|
'
|
||||||
|
```
|
||||||
|
```bash
|
||||||
|
# This is also
|
||||||
|
# a multi line
|
||||||
|
# Comment
|
||||||
|
```
|
||||||
|
|
||||||
### Substrings
|
### Substrings
|
||||||
|
|
||||||
| `${FOO:0:3}` | Substring _(position, length)_ |
|
| `${FOO:0:3}` | Substring _(position, length)_ |
|
||||||
|
|
Loading…
Reference in New Issue