ctools extended and correction
This commit is contained in:
parent
0120b189ad
commit
8f4ab2582b
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user