Linux-Hams archive - January 1998: Re: GREP
Re: GREP
Ham mailing list account (uhllvi.kzhnzvvd@sonae.pt)
Wed, 7 Jan 1998 14:12:28 -0800 (PST)
> 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