[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: a grep question



"justin cunningham" <jcunningham@engine8.com> writes:

> Hi, I read through man on find and grep and am trying to search for an
> ip in some files contained in folders but every time I type in grep
> options it just hangs.  What am I doing wrong?
> 
> Conversely i can go into /site.com/cgi-bin then cat any.cgi | grep
> 10.0.0.1 
> 
> and will get the desired result but instead of doing this for 'every
> file' in 'every folder' I want to search for the 10.ip in the files from
> the site's root directory.
> 


Ummm... how many files are in the directory? It's gonna take _much_
longer to grep through 1,000 files than to grep through just one.

My suggestion? Patience is a virtue ;-)


HTH



Reply to: