diff options
author | Philip Wittamore <philip@wittamore.com> | 2025-05-17 09:34:49 +0200 |
---|---|---|
committer | Philip Wittamore <philip@wittamore.com> | 2025-05-17 09:34:49 +0200 |
commit | 3d1e2e2ea7fac9525967c8dfd25d50b32e1e5c82 (patch) | |
tree | d70ec287786a98f611f206bdd1d085834fc38207 | |
parent | 61981cc59250824dba6ad005fa0d1e882ab9bc7a (diff) | |
download | bashlib-3d1e2e2ea7fac9525967c8dfd25d50b32e1e5c82.tar.gz bashlib-3d1e2e2ea7fac9525967c8dfd25d50b32e1e5c82.tar.bz2 bashlib-3d1e2e2ea7fac9525967c8dfd25d50b32e1e5c82.zip |
update
-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}` | |