From 3d1e2e2ea7fac9525967c8dfd25d50b32e1e5c82 Mon Sep 17 00:00:00 2001 From: Philip Wittamore Date: Sat, 17 May 2025 09:34:49 +0200 Subject: update --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'README.md') 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.

Combine with a `:` no-op to discard/ignore return `value`. | `${variable="value"}`
`: ${variable="value"}` | | **Removal** | | | Delete shortest match of `needle` from front of `haystack`. | `${haystack#needle}` | -- cgit v1.2.3