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 .....
>
Yeah, I've always hated -exec. Thanks for reminding me why. :-)
> Personally, I use zsh which has recursive globbing built in:
> cd /path/to/dir
> perl -pi -e 's%/FOO/%/Bar/Foo/Moo%g' **/*.html
>
Sweet.
--
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