Skip to content
Snippets Groups Projects

fix filtercolor

Merged Hahn Axel (hahn) requested to merge check-clientbackup-with-prune-verify into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -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"
}
# ------------------------------------------------------------------------------
Loading