Globally replace text in several files
The task is to replace every occuring instance of a piece of text in a group of text files with another one. For this task we want to replace the text "Goodbye London!" with "Hello New York!" for a list of files.
Perl
perl -pi -e "s/Goodbye London\!/Hello New York\!/g;" a.txt b.txt c.txt