for FILE in `find . -name "*.html"`; do cat $FILE | sed s./Foo/./Bar/Foo/Moo/.g > /tmp/tempfile mv /tmp/tempfile $FILE done Warning - I'm shooting from the hip here. Test Test Test! On Mon, 12 May 2003, 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? > > > _______________________________________________ > 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