mirror of
https://github.com/onkelbeh/cheatsheets.git
synced 2026-08-29 21:28:13 +02:00
Update bash.md
This commit is contained in:
@@ -192,12 +192,16 @@ comment
|
||||
|
||||
### Substrings
|
||||
|
||||
| `${FOO:0:3}` | Substring _(position, length)_ |
|
||||
| `${FOO:(-3):3}` | Substring from the right |
|
||||
| Expression | Description |
|
||||
| --------------- | ------------------------------ |
|
||||
| `${FOO:0:3}` | Substring _(position, length)_ |
|
||||
| `${FOO:(-3):3}` | Substring from the right |
|
||||
|
||||
### Length
|
||||
|
||||
| `${#FOO}` | Length of `$FOO` |
|
||||
| Expression | Description |
|
||||
| ---------- | ---------------- |
|
||||
| `${#FOO}` | Length of `$FOO` |
|
||||
|
||||
### Manipulation
|
||||
|
||||
|
||||
Reference in New Issue
Block a user