in reply to One-Liner for In Place Text Replacement of Multiple Files

perl -pi -e 's/foo/bar/' *

See perlrun for more info.