Skip to content

Instantly share code, notes, and snippets.

Will Welch welch

Block or report user

Report or block welch

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
magnetikonline /
Last active Jan 26, 2020
Bash string manipulation cheatsheet.

Bash string manipulation cheatsheet

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"}
You can’t perform that action at this time.