aboutsummaryrefslogtreecommitdiffstats
path: root/timeprefix.1
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2017-12-09 18:20:51 +0100
committerMattias Andrée <maandree@kth.se>2017-12-09 18:20:51 +0100
commit8d423d0f75bd2453e31c7945c4c97610362848b6 (patch)
treed180112db59e74a6e27867e32cdce94a6b7ad35b /timeprefix.1
parentRemove dist (diff)
downloadtimeprefix-8d423d0f75bd2453e31c7945c4c97610362848b6.tar.gz
timeprefix-8d423d0f75bd2453e31c7945c4c97610362848b6.tar.bz2
timeprefix-8d423d0f75bd2453e31c7945c4c97610362848b6.tar.xz
Add man page
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'timeprefix.1')
-rw-r--r--timeprefix.118
1 files changed, 18 insertions, 0 deletions
diff --git a/timeprefix.1 b/timeprefix.1
new file mode 100644
index 0000000..aef997a
--- /dev/null
+++ b/timeprefix.1
@@ -0,0 +1,18 @@
+.TH TIMEPREFIX 1 TIMEPREFIX
+.SH NAME
+timeprefix \- Prefix the current time to each line
+.SH SYNOPSIS
+.B timeprefix
+.SH DESCRIPTION
+.B timeprefix
+ignores all arguments. It reads stdin line by line
+and prefix the current time (at the point the line
+has been fully read) to each line and prints the
+prefixed line to stdout.
+.PP
+The timestamp is written in both decimal boot time
+and human-readable real time (in UTC), with with
+boot time first so that muliple generated log files
+can merged into one with
+.B sort
+.BR --merge .