[Cialug] How do you find when a program is used during init?

David Champion dchamp1337 at gmail.com
Wed Feb 1 15:17:46 CST 2012


Ken's method should work just fine for this specific case; there's usually
not much in large binary files under /etc.

-dc

On Wed, Feb 1, 2012 at 2:16 PM, Pixel // pinterface <pix at kepibu.org> wrote:

> Jeff Chapin wrote:
> > On 02/01/2012 01:13 PM, Daniel A. Ramaley wrote:
> >>      $ find /etc -type f -exec grep -Hi ntpdate {} \; 2>  /dev/null
> >
> > I believe xargs would be mildly more efficient in this case ;-)
> >
> > $ find /etc -type f | xargs grep -Hi ntpdate
>
> Oooooor you could use "+" rather than ";":
>
> $ find /etc -type f -exec grep -Hi ntpdate {} +
>
> ;)
>
> --
>
> _______________________________________________
> Cialug mailing list
> Cialug at cialug.org
> http://cialug.org/mailman/listinfo/cialug
>


More information about the Cialug mailing list