[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Multible search and replace?



> From: Chad Zimmerman <chad@dabcc-www.nmsu.edu>

> Was just wondering if there is a package out that does multiple file
> search and replaces?  I have to go through my main html directory and make
> a lot of repetive changes.  Was wondering if there was a package or a perl
> script laying arround to do this.  Would same me the time of writing one
> up.

Hopefully you'll get a more general answer too, but if you are an Emacs user,
you probably want to know about this method:

Outside of emacs, run etags, giving it the names of all the files in the
subtree.  For exapmle:
	cd <wherever>
	etags `find -type f`

The in emacs, use the tags-query-replace command.

(For this use of etags, the point is just to list all the files.  It doesn't
matter whether etags and emacs recognize any "tags" within the files.)


Daniel

P.S. This probably should go to a general Unix list, since it's not a 
specific Debian question.  

P.P.S. And it's probably in somebody's FAQ list somewhere, or should be,
since it is asked once in a while.


-- 
Daniel S. Barclay      Compass Design Automation, Inc.
daniel@compass-da.com  Suite 100, 5457 Twin Knolls Rd.  Columbia, MD 21045 USA


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-REQUEST@lists.debian.org . Trouble? e-mail to Bruce@Pixar.com


Reply to: