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