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

Re: [edlug] grep question



Peter,

find / -type f -exec grep -l {} 123\.123\.123\.123 \;

no doubt fols will add modifications but that should be a start...

James

On Mon, 1 Mar 2004, 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?
>
> Cheers,
>
> P
>
> --
> Peter George
> Training Manager
> Net Resources Ltd, 26 Palmerston Place, Edinburgh, EH12 5AL
> T: +44 131 477 7127  F: +44 131 477 7126
> http://www.netresources.co.uk <http://www.netresources.co.uk/>
>
>

   ----------------------------------
         James Jarvis BSc., PhD
      The University of Edinburgh
            0131 651 3095
    email 'james.jarvis@xxx.xxx.xxx'
   http://www.ucs.ed.ac.uk/~jjarvis/
   ----------------------------------
-
----------------------------------------------------------------------
You can find the EdLUG mailing list FAQ list at:
http://www.edlug.org.uk/list_faq.html



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