From 42963c1d2ea457269c430c4779646e7b0412bff6 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Tue, 12 Sep 2023 01:49:31 -0500 Subject: [PATCH] Promote ts. --- toys/{pending => other}/ts.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename toys/{pending => other}/ts.c (92%) diff --git a/toys/pending/ts.c b/toys/other/ts.c similarity index 92% rename from toys/pending/ts.c rename to toys/other/ts.c index 7d3ef73d..5677ca99 100644 --- a/toys/pending/ts.c +++ b/toys/other/ts.c @@ -2,18 +2,18 @@ * * Copyright 2023 Oliver Webb * - * See https://linux.die.net/man/1/ts + * No standard. USE_TS(NEWTOY(ts, "ims", TOYFLAG_USR|TOYFLAG_BIN|TOYFLAG_MAYFORK)) config TS bool "ts" - default n + default y help usage: ts [-is] [FORMAT] Add timestamps to each line in pipeline. Default format without options - "%b %d %H:%M:%S", with "%H:%M:%S". + "%b %d %H:%M:%S", with -i or -s "%H:%M:%S". -i Incremental (since previous line) -m Add milliseconds -- 2.39.2