ccat added

This commit is contained in:
Dirk Alders 2023-08-31 18:31:45 +02:00
parent 35dd43d940
commit 67ddb7019f
2 changed files with 4 additions and 2 deletions

View File

@ -5,3 +5,7 @@ ctail(){
cgrep(){
grep $* | 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"
}
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"
}

View File

@ -1,2 +0,0 @@
alias logtail="tail -fn 100 |grep -i -e '^' -e 'warning' -e 'error'"
alias logless="cat | grep -i -e '^' -e 'warning' -e 'error'"