Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Oct 2003 21:44:01 +0200
From:      Alex de Kruijff <freebsd@akruijff.dds.nl>
To:        Gary Kline <kline@thought.org>
Cc:        FreeBSD Mailing List <freebsd-questions@FreeBSD.ORG>
Subject:   Re: utility idea
Message-ID:  <20031016194401.GC5147@dds.nl>
In-Reply-To: <20031016171856.GA51167@tao.thought.org>
References:  <20031016171856.GA51167@tao.thought.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Oct 16, 2003 at 10:18:56AM -0700, Gary Kline wrote:
> 
> 	Is there an existant utility (script) that captures the output
> 	of grep -n and, using vi then presents the user with the list of
> 	files that are brought at the first point where the string was
> 	seen.  E.g, if I'm recursively searching for the string "ncount" 
> 	and find several files, the script would queue up each file.
> 
> 	(I seem to remember a debugging script that would do something
> 	 like this using the err output from cc, but this was years 
> 	 and years ago.)
> 
> 	Clues welcome, people, 

Sorry, I didn't read you message rigth.

I beleave you are looking for something like:
find /usr/ports -e grep -l "ncount" {} \;

This seaches for files with the word ncount inside.

-- 
Alex

Articles based on solutions that I use:
http://www.kruijff.org/alex/index.php?dir=docs/FreeBSD/



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