]> err.no Git - util-linux/commit
tailf: add option -n to specifying output lines
authorLi Zefan <lizf@cn.fujitsu.com>
Thu, 11 Oct 2007 11:57:35 +0000 (13:57 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 11 Oct 2007 11:57:35 +0000 (13:57 +0200)
commitcf9fc1dfe5432e63554b7ba192938984ddf61c4a
treead966faccd94a5684aff30084830812e1eaf96ea
parent642035150ec8fcb76244cf8475c5efdc7541760d
tailf: add option -n to specifying output lines

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@cn.fujitsu.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
text-utils/tailf.1
text-utils/tailf.c