ccat added
This commit is contained in:
parent
35dd43d940
commit
67ddb7019f
@ -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"
|
||||
}
|
||||
|
@ -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'"
|
Loading…
x
Reference in New Issue
Block a user