diff options
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 |