[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Edlug Archive Mar 2004 ]

Re: [edlug] grep question

On Mon, Mar 01, 2004 at 09:54:33AM -0000, Peter  George wrote:
> I want to search through my whole system for references to a particular IP address which may be in some obscure config file.
> How might I do this, outputing a list of files containing the IP address?

  rgrep -l /start/dir

  (rgrep is a synonym for grep -R which is recursive, and -l means show
  only the filenames that match not the lines too)

  `man grep` is your friend..

You can find the EdLUG mailing list FAQ list at:

This archive is kept by wibble@morpheux.org.DONTSPAMME