timestamp
A CLI tool that prepends a timestamp to each line of stdin — similar to the ts command from moreutils.
Installation
Usage
<command> |
By default, timestamps use the format %b %d %H:%M:%S (e.g. May 08 14:32:01).
Options
| Flag | Description |
|---|---|
[FORMAT] |
Custom strftime format string |
-s, --since-start |
Show elapsed time since start (HH:MM:SS.sss) instead of wall-clock time |
Examples
# Default wall-clock timestamp
|
# Custom format
|
# Elapsed time since the command started
|
License
MIT