aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Wittamore <philip@wittamore.com>2025-05-17 09:34:49 +0200
committerPhilip Wittamore <philip@wittamore.com>2025-05-17 09:34:49 +0200
commit3d1e2e2ea7fac9525967c8dfd25d50b32e1e5c82 (patch)
treed70ec287786a98f611f206bdd1d085834fc38207
parent61981cc59250824dba6ad005fa0d1e882ab9bc7a (diff)
downloadbashlib-3d1e2e2ea7fac9525967c8dfd25d50b32e1e5c82.tar.gz
bashlib-3d1e2e2ea7fac9525967c8dfd25d50b32e1e5c82.tar.bz2
bashlib-3d1e2e2ea7fac9525967c8dfd25d50b32e1e5c82.zip
update
-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}` |