rpl program Re: [wplug] Find and Replace

Patryk Laurent patryk at pakl.net
Fri Nov 15 04:09:11 EST 2002


Jaaron,

Try getting the programmed called "rpl" from freshmeat.net -- it should
handle your [recursive] find-and-replaces nicely.

Patryk


On Fri, 2002-11-15 at 05:27, J Aaron Farr wrote:
> Hello.
> 
> Both my shell scripting and perl skills are really poor, so I'm looking
> for a suggestion here:
> 
> What I'm want is a simple script that will do a find and replace over a
> number of files.  Specifically I've got a bunch of FORTRAN files and I
> want to easily change a variable declaration like "N=10" to "N=20".  So
> assuming I have all the files I want to change in my working directory,
> then I should be able to run some command like:
> 
> replace.sh *.for
> 
> Where I would edit the strings I want to search and replace in
> replace.sh.  I suppose that could also be sent via command line.
> 
> I know there should be simple ways to do this with perl, or even
> ed,ex,sed,or awk.  I'm just not sure what would be the simplest.  Any
> suggestions?
> 
> -- 
>   jaaron    <jaaronfarr at yahoo.com>
> 
> _______________________________________________
> wplug mailing list
> wplug at wplug.org
> http://www.wplug.org/mailman/listinfo/wplug
> 





More information about the wplug mailing list