From 7b6c69f8f1d9f413f90a75644866542573773801 Mon Sep 17 00:00:00 2001 From: "Hahn Axel (hahn)" <axel.hahn@iml.unibe.ch> Date: Fri, 21 Oct 2022 08:43:30 +0200 Subject: [PATCH] fix filtercolor --- check_clientbackup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_clientbackup.sh b/check_clientbackup.sh index 633ac3c..031f6ee 100755 --- a/check_clientbackup.sh +++ b/check_clientbackup.sh @@ -73,7 +73,7 @@ function showAge(){ # To use it set a pipe in front: # <command> | filterColor function filterColor(){ - sed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g" + sed -r "s/\x1B\[([0-9]{1,3}(;[0-9]{1,2})?)?[mGK]//g" } # ------------------------------------------------------------------------------ -- GitLab