From f55ca4b700791905eb1c132092fdfcacda98615a Mon Sep 17 00:00:00 2001 From: kaotisk Date: Wed, 27 Mar 2024 04:26:29 +0200 Subject: Colorize logfollow output --- bin/ak-logfollow | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/ak-logfollow b/bin/ak-logfollow index 3b75051..33e5587 100755 --- a/bin/ak-logfollow +++ b/bin/ak-logfollow @@ -5,7 +5,7 @@ do program="$(echo "$p" | awk '{print $2}')" messagetype="$(echo "$p" | awk '{print $3}')" message="$(echo "$p" | cut -d ' ' -f4-)" - printf '%s %s %s %s\n' \ + printf '%s \033[1;32m%s\033[0;00m \033[1;31m%s\033[0;00m %s\n' \ "$(date --date=@$timestamp +%Y%m%d_%H%M%S)" \ "$program" \ "$messagetype" \ -- cgit v1.2.3