ctools extended and correction

This commit is contained in:
Dirk Alders 2023-09-05 13:37:37 +02:00
parent 0120b189ad
commit 8f4ab2582b

View File

@ -2,11 +2,15 @@ ccat(){
cat $* | sed -u "s/ERROR/$(tput setaf 1)&$(tput sgr0)/gI"|sed -u "s/WARNING/$(tput setaf 3)&$(tput sgr0)/gI"|sed -u "s/INFO/$(tput setaf 2)&$(tput sgr0)/gI"|sed -u "s/DEBUG/$(tput setaf 6)&$(tput sgr0)/gI"
}
cless(){
ccat $* | less -r
}
ctail(){
tail $* | ccat"
tail $* | ccat
}
cgrep(){
grep $* | ccat"
grep $* | ccat
}