Re: recursive replace

2004-06-17 Thread George Georgalis
On Wed, Jun 16, 2004 at 05:02:03AM -0400, Randy W. Sims wrote: >George Georgalis wrote: >>On Mon, Jun 14, 2004 at 04:42:40PM -0500, JupiterHost.Net wrote: >> >>> >>>George Georgalis wrote: >>> >>> >>>>In my perl notes I found this for

Re: recursive replace

2004-06-16 Thread Randy W. Sims
George Georgalis wrote: On Mon, Jun 14, 2004 at 04:42:40PM -0500, JupiterHost.Net wrote: George Georgalis wrote: In my perl notes I found this for recursive replace I want to replace all instances of oldstring with newstring in html files, ./ and below. perl -i -e 's/oldstring/newstr

Re: recursive replace

2004-06-16 Thread George Georgalis
On Mon, Jun 14, 2004 at 04:42:40PM -0500, JupiterHost.Net wrote: > > >George Georgalis wrote: > >>In my perl notes I found this for recursive replace >> >>I want to replace all instances of oldstring with newstring in html >>files, ./ and below. >&

Re: recursive replace

2004-06-14 Thread JupiterHost.Net
George Georgalis wrote: In my perl notes I found this for recursive replace I want to replace all instances of oldstring with newstring in html files, ./ and below. perl -i -e 's/oldstring/newstring/g;' $( find ./ -name '*.html' ) I know how to script it up with sed, b

recursive replace

2004-06-14 Thread George Georgalis
In my perl notes I found this for recursive replace I want to replace all instances of oldstring with newstring in html files, ./ and below. perl -i -e 's/oldstring/newstring/g;' $( find ./ -name '*.html' ) I know how to script it up with sed, but I'm interested

Re: recursive replace command line

2003-12-11 Thread Paul Johnson
On Thu, Dec 11, 2003 at 12:17:03PM -0500, George Georgalis wrote: > btw - what's the best manpage for the perl command line options? perlrun -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: recursive replace command line

2003-12-11 Thread George Georgalis
On Thu, Dec 11, 2003 at 11:07:53AM -0800, R. Joseph Newton wrote: >If you are going to do your regex work--especially at a high level--in Perl, it is >imperative that >you read the Perl documentation. The problem in the above sam[ple, or the one that >jumps out at me, >is that you are using the

Re: recursive replace command line

2003-12-11 Thread R. Joseph Newton
George Georgalis wrote: > > that's what I needed to hear... however replacing text (with memory > capturing) is still a problem: > > perl -p -i -e 's/451(.)8229/331\12027/g;' $( find ./ -type f -name '*.html' -o -name > '*.txt' ) Hi George, If you are going to do your regex work--especially at

Re: recursive replace command line

2003-12-11 Thread George Georgalis
On Thu, Dec 11, 2003 at 11:21:39AM -0500, Jeff 'japhy' Pinyan wrote: >On Dec 11, George Georgalis said: > >>On Thu, Dec 11, 2003 at 09:05:20AM -0500, Jeff 'japhy' Pinyan wrote: >>>On Dec 10, George Georgalis said: >>> giving my perl a retry, I found some hints on a website to recursively re

Re: recursive replace command line

2003-12-11 Thread Jeff 'japhy' Pinyan
On Dec 11, George Georgalis said: >On Thu, Dec 11, 2003 at 09:05:20AM -0500, Jeff 'japhy' Pinyan wrote: >>On Dec 10, George Georgalis said: >> >>>giving my perl a retry, I found some hints on a website to recursively >>>replace text >>> >>>perl -p -i -e 's/old\(.\)atext/new\1btext/g;' $( find ./ -

Re: recursive replace command line

2003-12-11 Thread George Georgalis
On Thu, Dec 11, 2003 at 09:05:20AM -0500, Jeff 'japhy' Pinyan wrote: >On Dec 10, George Georgalis said: > >>giving my perl a retry, I found some hints on a website to recursively >>replace text >> >>perl -p -i -e 's/old\(.\)atext/new\1btext/g;' $( find ./ -name '*.html' -o -name >>'*.txt' ) > >Thi

Re: recursive replace command line

2003-12-11 Thread Jeff 'japhy' Pinyan
On Dec 10, George Georgalis said: >giving my perl a retry, I found some hints on a website to recursively >replace text > >perl -p -i -e 's/old\(.\)atext/new\1btext/g;' $( find ./ -name '*.html' -o -name >'*.txt' ) This isn't recursively replacing text; it's recursively going through a directory

recursive replace command line

2003-12-11 Thread George Georgalis
Hi - giving my perl a retry, I found some hints on a website to recursively replace text perl -p -i -e 's/old\(.\)atext/new\1btext/g;' $( find ./ -name '*.html' -o -name '*.txt' ) this should replace "old-atext" with "new-btext" and