about summary refs log tree commit diff
path: root/README
diff options
context:
space:
mode:
Diffstat (limited to 'README')
-rw-r--r--README11
1 files changed, 7 insertions, 4 deletions
diff --git a/README b/README
index 6b6e439..401a32c 100644
--- a/README
+++ b/README
@@ -4,12 +4,13 @@ NAME
      mlog – merge log files by timestamp
 
 SYNOPSIS
-     mlog [-f] [-s] [-u] [files ...]
+     mlog [-f] [-s] [-u] [-n lines] [files ...]
 
 DESCRIPTION
      mlog reads lines from multiple log files and prints them in chronological
-     order.  The files need to start with comparable timestamps.  mlog prints
-     the oldest line first, thus preserving relative order.
+     order.  The lines in the files need to start with lexicographically
+     comparable timestamps.  mlog prints the oldest line first, thus
+     preserving relative order.
 
      mlog behaves like a combination of ‘sort -m’ and ‘tail -f’.
 
@@ -20,6 +21,8 @@ DESCRIPTION
              With two -f flags, seek to the end of files on start and only
              print fresh lines.
 
+     -n N    Only print the last N lines of each file (default: all lines).
+
      -s      Strip a prefix generated by socklog(8) from each line, which have
              a format like ‘facility.priority: timestamp’.
 
@@ -46,4 +49,4 @@ LICENSE
 
      http://creativecommons.org/publicdomain/zero/1.0/
 
-Void Linux                     January 12, 2024                     Void Linux
+Void Linux                     January 14, 2024                     Void Linux