Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 May 2009 12:19:24 +0200
From:      "Zbigniew Szalbot" <z.szalbot@lcwords.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: find and searching for specific expression in files
Message-ID:  <80cddf609e38046ffa0ce3f2bdab235c.squirrel@relay.lc-words.com>
In-Reply-To: <20090530101328.GA59991@owl.midgard.homeip.net>
References:  <dd6b168d2af9ddbcfc52e5c0397e4d6a.squirrel@relay.lc-words.com> <20090530101328.GA59991@owl.midgard.homeip.net>

next in thread | previous in thread | raw e-mail | index | archive | help
>> Can you please give me a hint how to use find to search for a specific
>> text within files?
>
> Generally, you don't - find(1) does not examine the contents of files by
> itself, just their directory information.  You normally use grep(1) to
> search within a file.

Ahhh - I use grep on daily basis. Now why didn't I think of it? I got so
fixed on the idea of using find that I completely forgot about grep....

Sorry for the noise and thank you very much for your help!

-- 
Zbigniew Szalbot




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?80cddf609e38046ffa0ce3f2bdab235c.squirrel>