Bash Programming – String Replace

Syntax for string replace operations in BASH:

String Splice:
${parameter:offset:length}

Find and Replace:
${string/pattern/replacement}

Replace all:
${string//pattern/replacement}