How to replace a pattern in a string in bash How to replace a pattern in a string in bash shell shell