Here’s a quick one-liner for perl… replace every occurance of “boring” with “fun”:
perl -pi.bak -e ‘s/boring/fun/’ filename.txt
elegant » being unusually effective and simple… do » the way.
Here’s a quick one-liner for perl… replace every occurance of “boring” with “fun”:
perl -pi.bak -e ‘s/boring/fun/’ filename.txt