diff options
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -7,8 +7,9 @@ ## Bash string manipulation cheatsheet [https://gist.github.com/magnetikonline/90d6fe30fc247ef110a1](https://gist.github.com/magnetikonline/90d6fe30fc247ef110a1) -| :--- | :--- | + | **Assignment** | | +| :--- | :--- | | Assign `value` to `variable` if `variable` is not already set, `value` is returned. <br> <br>Combine with a `:` no-op to discard/ignore return `value`. | `${variable="value"}` <br>`: ${variable="value"}` | | **Removal** | | | Delete shortest match of `needle` from front of `haystack`. | `${haystack#needle}` | |