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

Pixel // pinterface pix at kepibu.org
Wed Feb 1 14:16:34 CST 2012


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 {} +

;)

-- 



More information about the Cialug mailing list