I found a useful article that explains how one can use emacs to find/replace in several files at once:
http://xahlee.org/emacs/find_replace_inter.html.