Config File Collection
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

12345678910111213141516
  1. ccat(){
  2. 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"
  3. }
  4. cless(){
  5. ccat $* | less -r
  6. }
  7. ctail(){
  8. tail $* | ccat
  9. }
  10. cgrep(){
  11. grep $* | ccat
  12. }