From owner-freebsd-questions@FreeBSD.ORG Fri Aug 22 15:03:57 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 2256E106567B for ; Fri, 22 Aug 2008 15:03:57 +0000 (UTC) (envelope-from vince@unsane.co.uk) Received: from unsane.co.uk (unsane-pt.tunnel.tserv5.lon1.ipv6.he.net [IPv6:2001:470:1f08:110::2]) by mx1.freebsd.org (Postfix) with ESMTP id 9B0858FC26 for ; Fri, 22 Aug 2008 15:03:56 +0000 (UTC) (envelope-from vince@unsane.co.uk) Received: from vhoffman-macbook.lon.namesco.net (150.117-84-212.staticip.namesco.net [212.84.117.150]) (authenticated bits=0) by unsane.co.uk (8.14.0/8.14.0) with ESMTP id m7MF4G7w036925 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 22 Aug 2008 16:04:17 +0100 (BST) (envelope-from vince@unsane.co.uk) Message-ID: <48AED559.2000907@unsane.co.uk> Date: Fri, 22 Aug 2008 16:03:53 +0100 From: Vincent Hoffman User-Agent: Thunderbird 2.0.0.16 (Macintosh/20080707) MIME-Version: 1.0 To: DAve References: <48AECD11.1000705@pixelhammer.com> In-Reply-To: <48AECD11.1000705@pixelhammer.com> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 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: Fri, 22 Aug 2008 15:03:57 -0000 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 If you dont mind installing a few perl modules, try textproc/p5-ack then just tail -f /var/log/LOGNAME | ack --color --passthru STRING Vince