Subject: Re: Search all files for a string ?
To: Philip Christian <philipchristian2003@yahoo.co.uk>
From: David Laight <david@l8s.co.uk>
List: netbsd-help
Date: 01/28/2003 15:36:40
On Tue, Jan 28, 2003 at 11:22:46AM +0000, Philip Christian wrote:
>
> Is there a tool that searches inside all files in a directory
> or a partition for a particular string of text ?
$ find . -type f | xargs grep 'pattern'
Putting word markers of pattern (eg '\<word\>' ) is often useful.
(NB the ' is needed!)
David
--
David Laight: david@l8s.co.uk