The magic of sed — find and replace “text” in a string or a file