From owner-freebsd-questions@FreeBSD.ORG Thu Oct 16 12:44:02 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BFB6016A4B3 for ; Thu, 16 Oct 2003 12:44:02 -0700 (PDT) Received: from smtp06.wxs.nl (smtp06.wxs.nl [195.121.6.58]) by mx1.FreeBSD.org (Postfix) with ESMTP id E3C6C43FB1 for ; Thu, 16 Oct 2003 12:43:59 -0700 (PDT) (envelope-from akruijff@www.kruijff.org) Received: from kruij557.speed.planet.nl (ipd50a97ba.speed.planet.nl [213.10.151.186]) by smtp06.wxs.nl (iPlanet Messaging Server 5.2 HotFix 1.14 (built Mar 18 2003)) with ESMTP id <0HMV00APN812M2@smtp06.wxs.nl> for freebsd-questions@FreeBSD.ORG; Thu, 16 Oct 2003 21:41:26 +0200 (MEST) Received: from Alex.lan (localhost.lan [127.0.0.1]) by kruij557.speed.planet.nl (8.12.8p2/8.12.8) with ESMTP id h9GJi2od005331; Thu, 16 Oct 2003 21:44:02 +0200 (CEST envelope-from akruijff@Alex.lan) Received: (from akruijff@localhost) by Alex.lan (8.12.8p2/8.12.8/Submit) id h9GJi1nt005330; Thu, 16 Oct 2003 21:44:01 +0200 (CEST envelope-from akruijff) Date: Thu, 16 Oct 2003 21:44:01 +0200 From: Alex de Kruijff In-reply-to: <20031016171856.GA51167@tao.thought.org> To: Gary Kline Message-id: <20031016194401.GC5147@dds.nl> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Content-disposition: inline User-Agent: Mutt/1.4.1i References: <20031016171856.GA51167@tao.thought.org> cc: FreeBSD Mailing List Subject: Re: utility idea X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Oct 2003 19:44:02 -0000 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/