Skip to content

Instantly share code, notes, and snippets.

View zsims's full-sized avatar
😕
Confused

Zac Sims zsims

😕
Confused
View GitHub Profile
@zsims
zsims / README.md
Created February 14, 2019 09:17 — forked from magnetikonline/README.md
Bash string manipulation cheatsheet.

Bash string manipulation cheatsheet

Assignment
Assign value to variable if variable is not already set. Value will be returned.

Couple with : no-op if return value is to be discarded.
${variable="value"}
: ${variable="value"}