Perl command can be use to replace bunch of words in a text file below is the command
perl -i.bak -pe ‘s|wordtoreplace|replacewithword|g’ *.txt