From 8d423d0f75bd2453e31c7945c4c97610362848b6 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 9 Dec 2017 18:20:51 +0100 Subject: Add man page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- README | 19 ++++++++++++++----- timeprefix.1 | 18 ++++++++++++++++++ 2 files changed, 32 insertions(+), 5 deletions(-) create mode 100644 timeprefix.1 diff --git a/README b/README index c168cdc..71a77bb 100644 --- a/README +++ b/README @@ -1,6 +1,15 @@ -A small program to prefixes the current time a line -is written to its stdin. +NAME + timeprefix - Prefix the current time to each line -If you use this to generate log files, you can use -`sort --merge` to create on log file from multiple -log files. +SYNOPSIS + timeprefix + +DESCRIPTION + 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. + + 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 + sort --merge. 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 . -- cgit v1.2.3-70-g09d2