perl -i.bak -pe 's/frog/toad/g' txtfile