🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.help
Article #189151

Re: Column oriented search and replace

#189151
From: Josh Mittleman
Date: Thu, 18 Apr 1991 15:33
14 lines
1318 bytes
In article <1991Apr16.204234.27753@amd.com>, dwork@brahms.amd.com (Jeff
Dwork) writes:

> I frequently have to work with files containing many columns of numbers.  I
> want to do things like "search for the string 103 beginning in column 25" or
> "replace every 0 in column 17 with 1".  Has anyone written things to do this?

Check out the function operate-on-rectangle.  You could write a fairly
simple query-replace-on-rectangle by using this function, I think.

===========================================================================
Josh Mittleman (mittle@watson.ibm.com or joshua@paul.rutgers.edu)
J2-C28 T.J. Watson Research Center, PO Box 704, Yorktown Heights, NY  10598
Technical Details
Message-ID: <1991Apr18.153355.20222@watson.ibm.com>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!bywater!arnor!watson!blinn.watson.ibm.com!mittle
References: <9104151304.AA12675@crdgw1.ge.com> <1991Apr16.204234.27753@amd.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 103b8b,a08aab4ba3e56953
X-Google-Attributes: gid103b8b,public
X-Google-ArrivalTime: 1991-04-18 22:25:19 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!bywater!arnor!watson!blinn.watson.ibm.com!mittle
From: mittle@blinn.watson.ibm.com (Josh Mittleman)
Newsgroups: gnu.emacs.help
Subject: Re: Column oriented search and replace
Message-ID: <1991Apr18.153355.20222@watson.ibm.com>
Date: 18 Apr 91 15:33:55 GMT
References: <9104151304.AA12675@crdgw1.ge.com> <1991Apr16.204234.27753@amd.com>
Sender: @watson.ibm.com
Organization: IBM T. J. Watson Research
Lines: 14