Skip to content

Instantly share code, notes, and snippets.

View antevens's full-sized avatar

Antonia Stevens antevens

View GitHub Profile
@magnetikonline
magnetikonline / README.md
Last active October 31, 2024 17:00
Bash string manipulation cheatsheet.

Bash string manipulation cheatsheet

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"}