Here's a method for using a single perl command to search and replace for regular expressions in a file or multiple files
perl -pi -e s#orig text#replace text#g [filenames]
Comment feed for this post