aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/README.md b/README.md
index b99b128..895ce4a 100644
--- a/README.md
+++ b/README.md
@@ -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}` |