CmdID

CmdID / Commands

ts

Add timestamps to each line in pipeline. toybox

On Linux

Opens CmdID with your command. It is read in your browser and sent nowhere.

Linux

from the toybox, 0BSD

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 start

Several platforms

from tldr-pages, CC BY 4.0

Add timestamps to every line from stdin.

Add a timestamp to the beginning of each line

command | tsIdentify

Add timestamps with microsecond precision

command | ts "%b %d %H:%M:%.S"Identify

Add incremental timestamps with microsecond precision, starting from zero

command | ts -i "%H:%M:%.S"Identify

Convert existing timestamps in a text file (e.g. a log file) into relative format

cat path/to/file | ts -rIdentify