Linux-Hams archive - January 1998: RE: GREP

RE: GREP

Daniel Avila (nrohlb@entresolutions.net)
Wed, 7 Jan 1998 23:36:42 -0800


Is locate a command in linux. If so please give me a example syntax.
I will look at man locate as well

Thanks,
Daniel Avila :)
KE6TOI
E-Mail1 whni.yanxgqbpgf@miyodea.com
E-mail2 jlbmpc@mx.dy.fi
E-Mail Page: wirkcle.kochyzfa@caci.com
Phone: +1(805)376-2910
Fax: +1(805)498-9760
Page: +1(888)208-5286
Voice Mail: +1(805)469-8849

-----Original Message-----
From: Ham mailing list account [SMTP:nffuycaf.nohf@mx.dy.fi]
Sent: Wednesday, January 07, 1998 2:12 PM
To: Daniel Avila
Cc: vvd.njaktm@germanos.gr
Subject: Re: GREP

> I want to search my whole sys for a certain file ex:httpd can someone give
> me an example for the following grep items.
> I need to know the basics like what goes in brakets if anything at all and
> so on
>
> A1. grep for a file:
>
>
>
> A2. grep for a dir:
>
> Thanks,
> Daniel Avila
>
>

Have you considered using the 'locate' function instead? Most linux
installations support it. If yours doesn't, it's not very hard to
install manually.

Read the man page for a through description. Briefly: locate searches
a database for strings that match its first argument. The database is
re-built daily via a root crontab entry.

Jeff N6TPN