You don't need the quotes on the -exec (at least I've never used them):

 find /path/to/dir/ -name '*.html' \
 -exec perl -pi -e 's[/FOO/][/Bar/Foo/Moo]g' {} \;

I'm amazed at the file globbing.  Not being a zsh user, this is news to 
me.  What other little gems does zsh offer?

-David

On Mon, May 12, 2003 at 03:08:15PM -0500, Gerald Skerbitz wrote:
> Isn't the exec argument workable?
> What about
> find /path/to/dir/ -name '*.html' \
> -exec "perl -pi -e 's[/FOO/][/Bar/Foo/Moo]g' \"{}\""\;
> 
> Just pondering the uses of xargs .....
> 
> Personally, I use zsh which has recursive globbing built in:
> cd  /path/to/dir
> perl -pi -e 's%/FOO/%/Bar/Foo/Moo%g'  **/*.html
> 
> 

_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
http://www.mn-linux.org tclug-list at mn-linux.org
https://mailman.real-time.com/mailman/listinfo/tclug-list