perl -e 's/old/new/g;' -pi.bak somefile [download]
In reply to Preserving timestamp with -i switch by umasuresh