diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-06-30 15:54:47 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-06-30 15:54:47 +0300 |
commit | 251dc634fa625e9afb60cb83b5bc5d9201007e50 (patch) | |
tree | 5e269c1947b8fd08590eff6af7f56075bbf78533 /bin | |
parent | 6582701ceacb013aaefb1456204a3501b69cf1e5 (diff) | |
download | arching-kaos-tools-251dc634fa625e9afb60cb83b5bc5d9201007e50.tar.gz arching-kaos-tools-251dc634fa625e9afb60cb83b5bc5d9201007e50.tar.bz2 arching-kaos-tools-251dc634fa625e9afb60cb83b5bc5d9201007e50.zip |
removed ak-log-{follow,grep,rotate} in favor of ak-log
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ak-log-follow | 13 | ||||
-rwxr-xr-x | bin/ak-log-grep | 21 | ||||
-rwxr-xr-x | bin/ak-log-rotate | 4 |
3 files changed, 0 insertions, 38 deletions
diff --git a/bin/ak-log-follow b/bin/ak-log-follow deleted file mode 100755 index 33e5587..0000000 --- a/bin/ak-log-follow +++ /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 diff --git a/bin/ak-log-grep b/bin/ak-log-grep deleted file mode 100755 index 685cd0e..0000000 --- a/bin/ak-log-grep +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/bash -PROGRAM="$(basename $0)" -descriptionString="Shows a menu to grep logfile for selected script" -source $AK_LIBDIR/_ak_script_description -if [ ! -z $1 ] && [ -n "$1" ] -then - if [ "$1" == "-h" ] || [ "$1" == "--help" ] - then - description - echo "Launch with no arguments and select from the menu that will appear" - exit 1 - fi -fi - -echo "The following scripts have entries in the log file." -echo "Select one of those by entering the number of it below and hit enter:" -select x in $(cat $AK_LOGSFILE | cut -d ' ' -f 2 | sort | uniq) -do - grep $x $AK_LOGSFILE - break -done diff --git a/bin/ak-log-rotate b/bin/ak-log-rotate deleted file mode 100755 index bac076c..0000000 --- a/bin/ak-log-rotate +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash -source $AK_LIBDIR/_ak_log - -_ak_log_rotate |