From owner-freebsd-questions@FreeBSD.ORG Thu Oct 16 10:19:00 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 39ACC16A4B3 for ; Thu, 16 Oct 2003 10:19:00 -0700 (PDT) Received: from sage.thought.org (dsl231-043-140.sea1.dsl.speakeasy.net [216.231.43.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id C58A243FDD for ; Thu, 16 Oct 2003 10:18:58 -0700 (PDT) (envelope-from kline@thought.org) Received: from thought.org (root@tao [10.0.0.247]) by sage.thought.org (8.12.9/8.11.4) with ESMTP id h9GHIt5G095958 for ; Thu, 16 Oct 2003 10:18:55 -0700 (PDT) (envelope-from kline@thought.org) Received: (from kline@localhost) by thought.org (8.12.6/8.11.3) id h9GHIuSw051189 for freebsd-questions@FreeBSD.ORG; Thu, 16 Oct 2003 10:18:56 -0700 (PDT) (envelope-from kline) Date: Thu, 16 Oct 2003 10:18:56 -0700 From: Gary Kline To: FreeBSD Mailing List Message-ID: <20031016171856.GA51167@tao.thought.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: Observing 17 years of service to the Unix community User-Agent: Mutt/1.5.3i Subject: 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 17:19:00 -0000 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 -- Gary Kline kline@thought.org www.thought.org Public service Unix