diff options
| -rw-r--r-- | Makefile | 2 | ||||
| -rw-r--r-- | README | 10 | ||||
| -rw-r--r-- | config.mk | 4 | ||||
| -rw-r--r-- | timeprefix.1 | 8 |
4 files changed, 12 insertions, 12 deletions
@@ -26,7 +26,7 @@ uninstall: -rm -- "$(DESTDIR)$(MANPREFIX)/man1/timeprefix.1" clean: - -rm -f -- timeprefix *.o + -rm -f -- timeprefix *.o *.su .SUFFIXES: .SUFFIXES: .o .c @@ -5,13 +5,13 @@ SYNOPSIS timeprefix DESCRIPTION - timeprefix 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. + timeprefix reads stdin line by line and prefixes 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 the boot time first so - that muliple generated log files can merged into one with - sort --merge. + that multiple generated log files can be merged into one with + sort -m. timeprefix also marks when the program started and terminated. @@ -1,8 +1,8 @@ PREFIX = /usr MANPREFIX = $(PREFIX)/share/man -CC = cc +CC = c99 CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -CFLAGS = -std=c99 -Wall -O2 +CFLAGS = LDFLAGS = diff --git a/timeprefix.1 b/timeprefix.1 index 593ed4f..716c1ee 100644 --- a/timeprefix.1 +++ b/timeprefix.1 @@ -5,16 +5,16 @@ timeprefix \- Prefix the current time to each line .B timeprefix .SH DESCRIPTION .B timeprefix - reads stdin line by line and prefix the current time + reads stdin line by line and prefixes 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 the -boot time first so that muliple generated log files -can merged into one with +boot time first so that multiple generated log files +can be merged into one with .B sort -.BR --merge . +.BR -m . .PP .B timeprefix also marks when the program started and terminated. |
