From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: J G Miller Newsgroups: gmane.emacs.help Subject: Re: search across linebreaks Date: Sun, 17 Feb 2013 14:43:22 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <878v6nbd1i.fsf@ericabrahamsen.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1361117316 3098 80.91.229.3 (17 Feb 2013 16:08:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 17 Feb 2013 16:08:36 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Feb 17 17:08:58 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U76nN-0000NJ-SQ for geh-help-gnu-emacs@m.gmane.org; Sun, 17 Feb 2013 17:08:53 +0100 Original-Received: from localhost ([::1]:46862 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U76n3-0000Fz-UN for geh-help-gnu-emacs@m.gmane.org; Sun, 17 Feb 2013 11:08:33 -0500 X-Received: by 10.180.95.97 with SMTP id dj1mr17033wib.4.1361112252878; Sun, 17 Feb 2013 06:44:12 -0800 (PST) Original-Path: usenet.stanford.edu!yu2no2437507wib.0!news-out.google.com!bp2ni42703wib.1!nntp.google.com!proxad.net!feeder1-2.proxad.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx05.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 17 Injection-Date: Sun, 17 Feb 2013 14:43:22 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="f561f7fd9ab81d860083e01a4c8010e3"; logging-data="19923"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19VpI+0qqc8TagKj3p8qYN6si8OhlrheJg=" User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) Cancel-Lock: sha1:4yE/NluoEWTUqYCY1+L4tBjv6o8= Original-Xref: usenet.stanford.edu gnu.emacs.help:196843 X-Mailman-Approved-At: Sun, 17 Feb 2013 11:08:30 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:89132 Archived-At: On Sunday, February 17th, 2013, at 08:13:52h -0500, Jude DaShiell suggested: > On Sun, 17 Feb 2013, Eric Abrahamsen wrote: > >> I'm going to need to do a large scale search-and-replace on a series of >> text files, using a sort of dictionary or hash-table of search terms and >> their replacement. ... >> > Think sed ... For what is required, sed is not going to be adequate. awk at the very minimum, and preferably perl, or for those who are object oriented, python, or maybe ruby.