News for hackers. Stuff that matters.
Re:The Hidden Gems of Moreutils by c0l0 on Saturday December 30, 2023 @01:33PM (#38817524)
Assuming semi-recent bash(1), you can also get away with something like

    while read -r line; do printf '%(%F %T %s)T %s\n' "-1" "${line}"; done
as the right-hand side/reader of a shell pipe for most of what ts(1) offers. ("-1" makes the embedded strftime(3) format string assume the current time as its input).

There are no comments on this comment yet.