Prof A Olowofoyeku (The African Chief) wrote:
Hi
This isn't strictly a GPC question, but it is related, so I'll ask anyway :|
Is there an easy way to change a string in all source files to another string?
For example, if I want to change all occurrences of "Type foo = Object (bar)" to "Type Tfoo = Class (Tbar)" in all ".pas" and ".pp" files in a directory tree, is there an easy way to do it, using standard GNU tools? I could of course write a program to do it, but I figured there could be an easier way. Thanks.
Best regards, The Chief
Prof. Abimbola A. Olowofoyeku (The African Chief) web: http://www.greatchief.plus.com/
TextWrangler (the FREE little brother of BBEdit) can be downloaded from
http://www.barebones.com/support/textwrangler/updates.shtml
And it will do multi-file GREP based searches.