Bash Parse Stringregex Replacement