From owner-freebsd-questions@FreeBSD.ORG Sat Aug 23 15:08:32 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 4EA2C106564A for ; Sat, 23 Aug 2008 15:08:32 +0000 (UTC) (envelope-from chuckr@telenix.org) Received: from mail6.sea5.speakeasy.net (mail6.sea5.speakeasy.net [69.17.117.8]) by mx1.freebsd.org (Postfix) with ESMTP id 2982E8FC0A for ; Sat, 23 Aug 2008 15:08:31 +0000 (UTC) (envelope-from chuckr@telenix.org) Received: (qmail 5290 invoked from network); 23 Aug 2008 15:08:31 -0000 Received: from june.chuckr.org (chuckr@[66.92.151.194]) (envelope-sender ) by mail6.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 23 Aug 2008 15:08:31 -0000 Message-ID: <48B027CF.6040605@telenix.org> Date: Sat, 23 Aug 2008 11:07:59 -0400 From: Chuck Robey User-Agent: Thunderbird 2.0.0.16 (X11/20080820) MIME-Version: 1.0 To: DAve References: <48AECD11.1000705@pixelhammer.com> <48AF048A.1070401@pixelhammer.com> In-Reply-To: <48AF048A.1070401@pixelhammer.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: 'User Questions' 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 15:08:32 -0000 DAve wrote: > DAve wrote: >> I would love to have a way to tail a log, like piping to grep, except >> I see every line and the lines I would normally grep for are >> highlighted. That would be cool. Anyone know of a bash command or >> tool that will do this? >> >> Side note, I am tailing sendmail after changes to my outbound queue >> runners. I want to highlight my sm-mta-out lines but still see all >> lines. >> >> DAve > > Thank you all, I got what I needed! > > DAve > 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.