On 8 Nov 2003, at 6:04 PM, Jeremy Higgs wrote:
Hi everyone!
Does anyone have a script that would allow me to change the email listed in each of the .info files for packages I maintain? I've done a little bit of simple shell scripting, so I was going to do it that way using a whole lot of for loops, but I'm not sure how to do it completely. If anyone has a script already (I remember some developers changing emails before) that I could look at, that would be great!
You can do it in emacs using tags-query-replace
First create a TAGS file for all info files
cd /sw/fink find . -name "*.info" | xargs etags
Fire up emacs, and go:
M-x tags-query-replace
enter the string you want to replace, and what you want to change it to, and go. It will open up each file in which a match is found. You can then either accept/reject individual changes, or type '!' to change all occurrences in that file.
Voila!
-- Rohan Lloyd
------------------------------------------------------- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ _______________________________________________ Fink-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-devel
