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.

// George


-- 
George Georgalis, Architect and administrator, Linux services. IXOYE
http://galis.org/george/  cell:646-331-2027  mailto:[EMAIL PROTECTED]
Key fingerprint = 5415 2738 61CF 6AE1 E9A7  9EF0 0186 503B 9831 1631


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to