Skip to content
Snippets Groups Projects
Commit 7b6c69f8 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

fix filtercolor

parent 4f42c3c6
No related branches found
No related tags found
1 merge request!85fix filtercolor
...@@ -73,7 +73,7 @@ function showAge(){ ...@@ -73,7 +73,7 @@ function showAge(){
# To use it set a pipe in front: # To use it set a pipe in front:
# <command> | filterColor # <command> | filterColor
function 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"
} }
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment