search and replace with perl
Replace textpattern in a file
perl -p -i -e 's/Joe Doe/Kermit/g' file.txt