Merge branch 'pr-408'

* pr-408:
  bash: update multiline comments examples
  Adding comments section
This commit is contained in:
Rico Sta. Cruz 2018-03-15 17:33:48 +08:00
commit c1aa1795dd
No known key found for this signature in database
GPG Key ID: CAAD38AE2962619A
1 changed files with 15 additions and 1 deletions

14
bash.md
View File

@ -172,6 +172,20 @@ DIR=${SRC%$BASE} #=> "/path/to" (dirpath)
| `${FOO/%from/to}` | Replace suffix |
| `${FOO/#from/to}` | Replace prefix |
### Comments
```bash
# Single line comment
```
```bash
: '
This is a
multi line
comment
'
```
### Substrings
| `${FOO:0:3}` | Substring _(position, length)_ |