[NTLUG:Discuss] More from the Saturday topic of "Less is More..."

David I S Mandala davidm at them.com
Tue Apr 19 17:06:52 CDT 2005


"tail -f | grep something | less" perhaps

On Tue, 2005-04-19 at 16:38 -0500, Stuart Johnston wrote:
> Chris J Albertson wrote:
> > When the topic of Less came up in the 10AM training class, I raised the 
> > question of if Less would append data to a "live" file being viewed. The 
> > answer is Yes. When you open a log file for a running process with less, 
> > the new data will be added to the existing less session whenever a 
> > command is issued to less by the user.
> > Think   tail -f   with the ability to search like vi.
> 
> Hey, that's uber-nifty!  Looks to me like you can hit 'R' to refresh or 
> 'F' to auto-refresh and scroll forward.
> 
> Thanks for the tip!  Now how about a way to combine that with a grep?
> 
> -Stuart
> 
> _______________________________________________
> https://ntlug.org/mailman/listinfo/discuss
> 
-- 
David Mandala <davidm at them dot com>
www.them.com/~davidm Public Key id: 45B2D952
Murphy TX, 75094 214.774.2569 HO 972.693.4007 C





More information about the Discuss mailing list