[c-nsp] display last lines of logging

Robert Blayzor rblayzor at inoc.net
Fri May 25 07:02:00 EDT 2007


Rodney Dunn wrote:
> Good suggestion. Let me see if I can convince development to code it.


Well there already begin, inc, exc, etc...

It would be nice to add "last" and "top", etc:

sh log | top     (shows top 10 lines)
sh log | last    (shows last 10 lines)
sh log | last 20 (shows last 20 lines)
sh log | top 5   (shows top 5 lines)


top and last could easily be replaced with "head" and "tail", but that's
 just the unix geek coming out! :-)

-- 
Robert Blayzor, BOFH
INOC, LLC
rblayzor\@(inoc.net|gmail.com)
PGP: 0x66F90BFC @ http://pgp.mit.edu
Key fingerprint = 6296 F715 038B 44C1 2720  292A 8580 500E 66F9 0BFC

My Other machine is your Linux Box


More information about the cisco-nsp mailing list