Update bash.md

This commit is contained in:
Rico Sta. Cruz 2020-06-13 10:15:03 +10:00 committed by GitHub
parent 42df935e43
commit aa8c2632d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 3 deletions

View File

@ -192,11 +192,15 @@ comment
### Substrings ### Substrings
| Expression | Description |
| --------------- | ------------------------------ |
| `${FOO:0:3}` | Substring _(position, length)_ | | `${FOO:0:3}` | Substring _(position, length)_ |
| `${FOO:(-3):3}` | Substring from the right | | `${FOO:(-3):3}` | Substring from the right |
### Length ### Length
| Expression | Description |
| ---------- | ---------------- |
| `${#FOO}` | Length of `$FOO` | | `${#FOO}` | Length of `$FOO` |
### Manipulation ### Manipulation