Re: -n lines support for syslogc(8)

2011-07-12 Thread Stuart Henderson
On 2011/07/12 12:46, Stuart Henderson wrote: As suggested by Theo, also handle syslogc -nnn (like tail does). Code borrowed from tail with some changes as syslogc only deals with lines (and I see no need to extend that). Updated manual (I meant to use 'lines' instead of the 'number' which I

-n lines support for syslogc(8)

2011-07-09 Thread Stuart Henderson
I often find I want to see more than the default 10 lines of output with syslogc -f. This diff adds support for -n, like in tail. It works both with and without -f. e.g.: # syslogc -n 5 ospfd Jul 9 08:28:43 gr1-pl7 last message repeated 3 times Jul 9 08:29:18 gr1-pl7 ospfd[26625]: recv_packet: