aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-03-27 04:26:29 +0200
committerkaotisk <kaotisk@arching-kaos.org>2024-03-27 04:26:29 +0200
commitf55ca4b700791905eb1c132092fdfcacda98615a (patch)
tree67c2ff8810e72b4cba7d0827e9a6fadd1c3b15f6
parentc86a6ef36f2101a6e3e5650e71c775d007ac1146 (diff)
downloadarching-kaos-tools-f55ca4b700791905eb1c132092fdfcacda98615a.tar.gz
arching-kaos-tools-f55ca4b700791905eb1c132092fdfcacda98615a.tar.bz2
arching-kaos-tools-f55ca4b700791905eb1c132092fdfcacda98615a.zip
Colorize logfollow output
-rwxr-xr-xbin/ak-logfollow2
1 files changed, 1 insertions, 1 deletions
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" \