Bash Replace Part Of A Given Pattern