replace a string inside with avariable code example Example: bash replace substring echo [string] | sed "s/[original]/[target]/g"