in reply to Embedding perl in bash
Note that bash itself can also do substitution:
INPUT="A String of text" RESULTS=${INPUT/bad_text/good_text} [download]