Re: [PATCH] tailf: add option -n fo specifying output lines

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Sep 11, 2007 at 01:48:38PM +0800, Li Zefan wrote:
> It will be useful if we can print out the last n lines instead of the last
> 10, just like tail.
> 
> There are examples:
> 
> tailf -n 5 file1
> tailf --lines 10 file2
> tailf -20 file3
> 
> Signed-off-by: Li Zefan <lizf@xxxxxxxxxxxxxx>

 Applied, thanks. Note, I'm going to cleanup error messages (err.h
 stuff), so ignore this things for now.

 BTW, What about use inotify subsystem for tailf?  This method is
 definitely more effective than sleep() & stat().

 ...but, the tailf is probably not well known command (yet?).

    Karel

-- 
 Karel Zak  <kzak@xxxxxxxxxx>
-
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux