xargs vs -exec

Martin Rakhmanov rakhmanov.martin at gmail.com
Thu Feb 19 10:49:42 UTC 2009


Hello

>From http://www.freebsd.org/gnome/docs/faq2.html:

# find / -type f -name "*.la" | xargs grep -l /usr/X11R6/lib/libglade-2.0.la

Is there any reason to use xargs instead of find's -exec option?

# find / -type f -name "*.la" -exec grep -l
/usr/X11R6/lib/libglade-2.0.la '{}' \;

jimmers



More information about the freebsd-doc mailing list