aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-logfollow
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-03-31 12:00:59 +0300
committerkaotisk <kaotisk@arching-kaos.org>2024-03-31 12:00:59 +0300
commite4f18be94261b39544ef3bc50321f6aedeb45bd6 (patch)
tree2c79daf0bdc91beb91846f00bb3d3f51236967cf /bin/ak-logfollow
parent23a61661f03c03a357ad8aa47ba3595fabe24de1 (diff)
downloadarching-kaos-tools-e4f18be94261b39544ef3bc50321f6aedeb45bd6.tar.gz
arching-kaos-tools-e4f18be94261b39544ef3bc50321f6aedeb45bd6.tar.bz2
arching-kaos-tools-e4f18be94261b39544ef3bc50321f6aedeb45bd6.zip
huge refactor, might breaking things
Diffstat (limited to 'bin/ak-logfollow')
-rwxr-xr-xbin/ak-logfollow13
1 files changed, 0 insertions, 13 deletions
diff --git a/bin/ak-logfollow b/bin/ak-logfollow
deleted file mode 100755
index 33e5587..0000000
--- a/bin/ak-logfollow
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/bin/bash
-tail -f $AK_LOGSFILE | while read -r p || [ -n "$p" ]
-do
- timestamp="$(echo "$p" | awk '{print $1}')"
- program="$(echo "$p" | awk '{print $2}')"
- messagetype="$(echo "$p" | awk '{print $3}')"
- message="$(echo "$p" | cut -d ' ' -f4-)"
- 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" \
- "$message"
-done