From owner-freebsd-questions@FreeBSD.ORG Sat Aug 23 16:11:19 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7DDC71065686 for ; Sat, 23 Aug 2008 16:11:19 +0000 (UTC) (envelope-from freebsd@optimis.net) Received: from mail.optimis.net (mail.optimis.net [69.104.191.124]) by mx1.freebsd.org (Postfix) with ESMTP id 4EFB18FC1D for ; Sat, 23 Aug 2008 16:11:19 +0000 (UTC) (envelope-from freebsd@optimis.net) Received: from marvin.optimis.net (marvin.optimis.net [192.168.1.3]) by mail.optimis.net (8.14.2/8.14.2) with ESMTP id m7NFbW08009729 for ; Sat, 23 Aug 2008 08:37:33 -0700 (PDT) (envelope-from freebsd@optimis.net) Received: from marvin.optimis.net (localhost [127.0.0.1]) by marvin.optimis.net (8.14.2/8.14.2) with ESMTP id m7NFcF9J008682 for ; Sat, 23 Aug 2008 08:38:15 -0700 (PDT) (envelope-from freebsd@optimis.net) Received: (from george@localhost) by marvin.optimis.net (8.14.2/8.14.2/Submit) id m7NFcFLG008680 for freebsd-questions@freebsd.org; Sat, 23 Aug 2008 08:38:15 -0700 (PDT) (envelope-from freebsd@optimis.net) Date: Sat, 23 Aug 2008 08:38:15 -0700 From: George Davidovich To: freebsd-questions@freebsd.org Message-ID: <20080823153815.GA7395@marvin.optimis.net> References: <48AECD11.1000705@pixelhammer.com> <48AF048A.1070401@pixelhammer.com> <48B027CF.6040605@telenix.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48B027CF.6040605@telenix.org> User-Agent: Mutt/1.5.18 (2008-05-17) Subject: Re: Tailing logs X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Aug 2008 16:11:19 -0000 On Sat, Aug 23, 2008 at 11:07:59AM -0400, Chuck Robey wrote: > DAve wrote: > > DAve wrote: > I do this commonly to catch the lines with the word "Building" in them, > from a file "build.out: > > tail -F build.out | grep --color=always Building > > When I get a free moment, I need to see about making that --color-always > the default. Grep provides for a number of environmental variables, the above being one of them. For example: export GREP_COLOR='0;32' export GREP_OPTIONS='--color=auto' Perfectly acceptable for regular use, but especially useful to test pattern matching before finalising that script you're working on. -- George