Replace Text

Here’s a quick one-liner for perl… replace every occurance of “boring” with “fun”:

perl -pi.bak -e ‘s/boring/fun/’ filename.txt