Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cgrep() {
- case $1 in
- r*)
- GREP_COLOR="01;31"
- ;;
- g*)
- GREP_COLOR="01;32"
- ;;
- y*)
- GREP_COLOR="01;33"
- ;;
- b*)
- GREP_COLOR="01;34"
- ;;
- m*)
- GREP_COLOR="01;35"
- ;;
- c*)
- GREP_COLOR="01;36"
- ;;
- w*)
- GREP_COLOR="01;37"
- ;;
- esac
- shift
- GREP_COLOR=$GREP_COLOR egrep --color=always "$@"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement