perl -i.bak -pe 's/something/something else/g' input.txt