Adding comments section

Single line and multi-line comments are added.
This commit is contained in:
aswin020 2018-02-15 14:53:24 +05:30 committed by GitHub
parent e780580524
commit e2d2eef9c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 0 deletions

16
bash.md
View File

@ -172,6 +172,22 @@ DIR=${SRC%$BASE} #=> "/path/to" (dirpath)
| `${FOO/%from/to}` | Replace suffix |
| `${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
| `${FOO:0:3}` | Substring _(position, length)_ |