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, but I'm interested in why this
one-liner is not working (does nothing, no error), best I can tell it
should work.
Does
find ./ -name '*.html'
by itself list the files you want?
if so try this:
perl -i -e 's/oldstring/newstring/g;' `find ./ -name '*.html'`
HTH :)
Lee.M - JupiterHost.Net
// George
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>