From 157e566125a2742dde1bb9a6ec2326d826a29b27 Mon Sep 17 00:00:00 2001 From: John-Mark Gurney Date: Wed, 14 Jul 2021 23:31:15 -0700 Subject: [PATCH] add utility to timestamp lines.. used by streaming.. --- ts-util | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 ts-util diff --git a/ts-util b/ts-util new file mode 100755 index 0000000..3f12f5d --- /dev/null +++ b/ts-util @@ -0,0 +1,5 @@ +#!/bin/sh + +while read l; do + echo $(TZ=UTC date +%Y-%m-%dT%H:%M:%SZ) $l +done