Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Feb 2009 13:20:32 +0300
From:      Martin Rakhmanov <rakhmanov.martin@gmail.com>
To:        freebsd-doc@FreeBSD.org
Subject:   xargs vs -exec
Message-ID:  <d7af0b050902190220y6e46d966s91c4c2e673230481@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d7af0b050902190220y6e46d966s91c4c2e673230481>