From owner-freebsd-questions@FreeBSD.ORG Thu Oct 16 12:39:25 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 C107016A4B3 for ; Thu, 16 Oct 2003 12:39:25 -0700 (PDT) Received: from smtp03.wxs.nl (smtp03.wxs.nl [195.121.6.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id D65D243FCB for ; Thu, 16 Oct 2003 12:39:24 -0700 (PDT) (envelope-from akruijff@www.kruijff.org) Received: from kruij557.speed.planet.nl (ipd50a97ba.speed.planet.nl [213.10.151.186]) by smtp03.wxs.nl (iPlanet Messaging Server 5.2 HotFix 1.14 (built Mar 18 2003)) with ESMTP id <0HMV0042N7VQIA@smtp03.wxs.nl> for freebsd-questions@FreeBSD.ORG; Thu, 16 Oct 2003 21:38:15 +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 h9GJdRod005274; Thu, 16 Oct 2003 21:39:27 +0200 (CEST envelope-from akruijff@Alex.lan) Received: (from akruijff@localhost) by Alex.lan (8.12.8p2/8.12.8/Submit) id h9GJdQFH005273; Thu, 16 Oct 2003 21:39:26 +0200 (CEST envelope-from akruijff) Date: Thu, 16 Oct 2003 21:39:26 +0200 From: Alex de Kruijff In-reply-to: <20031016171856.GA51167@tao.thought.org> To: Gary Kline Message-id: <20031016193926.GB5147@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:39:25 -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, > > tia, > > gary I think you think of script. I.e. script /root/filename. It records everything you do afther that. It is used in the handbook in the chapter that goes about updating your FreeBSD world by compilation. -- Alex Articles based on solutions that I use: http://www.kruijff.org/alex/index.php?dir=docs/FreeBSD/