about summary refs log tree commit diff
path: root/README
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2024-01-14 21:23:30 +0100
committerLeah Neukirchen <leah@vuxu.org>2024-01-14 21:23:30 +0100
commit6847561a81a9310c82f19f209008a56073225fcb (patch)
treeae7f65c980c84d1474bf637895d90cdde346696d /README
parent5cc099eb8e2160a69217b5d117b94d5ab73f7620 (diff)
downloadmlog-master.tar.gz
mlog-master.tar.xz
mlog-master.zip
add -n HEAD master
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