On Wed, 10 May 2006 10:08:09 +1200
Roy Britten <[EMAIL PROTECTED]> wrote:

> On Wed, 2006-05-10 at 10:00 +1200, Steve Holdoway wrote:
> > sudo "find /etc -type f -print0 |  xargs -0 grep -l eth1"
> 
> sudo find /etc -type f -exec grep -l eth1 \{\} \;
> 
> cuts down on typing :)
> 
xargs is *much* more efficient than calling the command for every match via 
-exec. ( plus there was once a bug in the -exec ( and -tar ) implementation on 
HP-UX 9, which burnt me really badly, so of course I'll never use it again (: )

Steve

Reply via email to