From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "michael.l" Newsgroups: gmane.emacs.help Subject: How to apply a list of regex replaces to multiple files? Date: Mon, 30 Jun 2008 18:50:24 -0700 (PDT) Organization: http://groups.google.com Message-ID: <091f39ab-89ac-438f-a878-464309c4a8f6@i18g2000prn.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1214882487 12262 80.91.229.12 (1 Jul 2008 03:21:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 1 Jul 2008 03:21:27 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 01 05:22:13 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KDWRV-0005WZ-Aw for geh-help-gnu-emacs@m.gmane.org; Tue, 01 Jul 2008 05:22:09 +0200 Original-Received: from localhost ([127.0.0.1]:40469 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KDWQe-0005f2-Re for geh-help-gnu-emacs@m.gmane.org; Mon, 30 Jun 2008 23:21:16 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!i18g2000prn.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 6 Original-NNTP-Posting-Host: 76.174.14.56 Original-X-Trace: posting.google.com 1214877024 26989 127.0.0.1 (1 Jul 2008 01:50:24 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 1 Jul 2008 01:50:24 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: i18g2000prn.googlegroups.com; posting-host=76.174.14.56; posting-account=JNyrwAoAAADXzolAUFxm7I3DGNXWS1dw User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9; Google-TR-3) Gecko/2008061004 Firefox/3.0, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:159812 X-Mailman-Approved-At: Mon, 30 Jun 2008 23:17:59 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:55167 Archived-At: I've browsed the messages here and have googled but don't see a clear solution yet. I have about 900 documents to which I need to apply a list of maybe 40 separate regex search and replaces. I would like to feed a list of the regex expressions and replacements to emacs and have it applied to a directory of the files. Any solutions? Keyboard macros don't seem like the right solution....