perl -p -i -e .com
"if there's one thing everyone should learn in perl, this is it"
Perl Pie : Replace String in Files
This will search all text files in the current directory for the word "SOME_NAME" and replace it with my name "Kris". This regex ends with "/gi" which the "i" means ignore case, so it will change any spelling of the word "SOME_WORD" have it be upper or lower case spelling of it.
Note also that you can just type in the full file name instead of "*.txt" and do the one single file.
Perl Pie : Replace String in Named Files
This is the same as above only difference is it will change it only in files with the name of "filename"

Note: this was copied from; one day it'll become more but all should know perl pie so this was preserved as is.