Update bash.md
This commit is contained in:
parent
42df935e43
commit
aa8c2632d7
10
bash.md
10
bash.md
|
@ -192,12 +192,16 @@ comment
|
||||||
|
|
||||||
### Substrings
|
### Substrings
|
||||||
|
|
||||||
| `${FOO:0:3}` | Substring _(position, length)_ |
|
| Expression | Description |
|
||||||
| `${FOO:(-3):3}` | Substring from the right |
|
| --------------- | ------------------------------ |
|
||||||
|
| `${FOO:0:3}` | Substring _(position, length)_ |
|
||||||
|
| `${FOO:(-3):3}` | Substring from the right |
|
||||||
|
|
||||||
### Length
|
### Length
|
||||||
|
|
||||||
| `${#FOO}` | Length of `$FOO` |
|
| Expression | Description |
|
||||||
|
| ---------- | ---------------- |
|
||||||
|
| `${#FOO}` | Length of `$FOO` |
|
||||||
|
|
||||||
### Manipulation
|
### Manipulation
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue