Sometimes, code isn’t written to be especially portable and requires some hand editing to coax it to run on a new machine. A shortcut that I’m fond of using is to set off a perl script to search for every instance of $WORD inside of $FILE. So if I wanted to replace every instance of “jason” inside of all of the files that are “.html” with the word “dude” I would use the following.
perl -pi -e ‘s/jason/dude/g’ *.html
To make that caps insensitive, run it like so
perl -pi -e ‘s/jason/dude/gi’ *.html