utility idea
Alex de Kruijff
freebsd at akruijff.dds.nl
Thu Oct 16 12:44:02 PDT 2003
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/
More information about the freebsd-questions
mailing list