Skip to content

Instantly share code, notes, and snippets.

@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"}
@zlargon
zlargon / speed_up_mp3.md
Last active April 15, 2020 00:43
Speed up mp3 file by FFmpeg on Mac