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


--
Gerry Skerbitz
gsker at tcfreenet.org

On Mon, 12 May 2003, John J. Trammell wrote:

> On Mon, May 12, 2003 at 12:30:03PM -0500, Michael Ableyev wrote:
> > How do I replace "/Foo/" with "/Bar/Foo/Moo/" in contents of files matching
> > a pattern (ex: *html) in a dir, recursively?
> >
>
> untested:
>
> find /path/to/dir/ -name '*.html' -print0 | xargs -0 perl -pi -e 's[/Foo/][/Bar/Foo/Moo/]g'
>
> --
> munged at el-swifto.com  9EC7 BC6D E688 A184 9F58  FD4C 2C12 CC14 8ABA 36F5
> Twin Cities Linux Users Group (TCLUG)      Minneapolis/St. Paul, Minnesota
>
> _______________________________________________
> 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
>


_______________________________________________
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