ts
Add timestamps to each line in pipeline. toybox
On Linux
Linux
Add timestamps to each line in pipeline. Default format without options "%b %d %H:%M:%S", with -i or -s "%H:%M:%S".
ts [-is] [FORMAT]
-iIncremental (since previous line)-mAdd milliseconds-sSince startSeveral platforms
Add timestamps to every line from stdin.
Add a timestamp to the beginning of each line
command | tsIdentifyAdd timestamps with microsecond precision
command | ts "%b %d %H:%M:%.S"IdentifyAdd incremental timestamps with microsecond precision, starting from zero
command | ts -i "%H:%M:%.S"IdentifyConvert existing timestamps in a text file (e.g. a log file) into relative format
cat path/to/file | ts -rIdentify