diff options
author | Leah Neukirchen <leah@vuxu.org> | 2024-01-14 21:23:30 +0100 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2024-01-14 21:23:30 +0100 |
commit | 6847561a81a9310c82f19f209008a56073225fcb (patch) | |
tree | ae7f65c980c84d1474bf637895d90cdde346696d /mlog.1 | |
parent | 5cc099eb8e2160a69217b5d117b94d5ab73f7620 (diff) | |
download | mlog-6847561a81a9310c82f19f209008a56073225fcb.tar.gz mlog-6847561a81a9310c82f19f209008a56073225fcb.tar.xz mlog-6847561a81a9310c82f19f209008a56073225fcb.zip |
Diffstat (limited to 'mlog.1')
-rw-r--r-- | mlog.1 | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/mlog.1 b/mlog.1 index edbd3a9..21d5168 100644 --- a/mlog.1 +++ b/mlog.1 @@ -1,4 +1,4 @@ -.Dd January 12, 2024 +.Dd January 14, 2024 .Dt MLOG 1 .Os .Sh NAME @@ -9,11 +9,13 @@ .Op Fl f .Op Fl s .Op Fl u +.Op Fl n Ar lines .Op Ar files\ ... .Sh DESCRIPTION .Nm reads lines from multiple log files and prints them in chronological order. -The files need to start with comparable timestamps. +The lines in the files need to start with lexicographically comparable +timestamps. .Nm prints the oldest line first, thus preserving relative order. .Pp @@ -31,6 +33,11 @@ When the file is truncated or recreated, start from beginning. With two .Fl f flags, seek to the end of files on start and only print fresh lines. +.It Fl n Ar N +Only print the last +.Ar N +lines of each file +.Pq default: all lines . .It Fl s Strip a prefix generated by .Xr socklog 8 |