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