Bug 107601 - grep supports showing coloured matches but it's not enabled by default
Summary: grep supports showing coloured matches but it's not enabled by default
Alias: None
Product: Red Hat Linux Beta
Classification: Retired
Component: grep (Show other bugs)
(Show other bugs)
Version: beta1
Hardware: i386 Linux
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Mike McLean
Keywords: FutureFeature
Depends On:
TreeView+ depends on / blocked
Reported: 2003-10-20 22:33 UTC by Matt Perry
Modified: 2007-04-18 16:58 UTC (History)
0 users

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-10-21 08:59:43 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Matt Perry 2003-10-20 22:33:56 UTC
Grep supports showing matches in a colour since RedHat 7.3 but it's not enabled
by default like colour support in "ls" is.  These attachments can go in
/etc/profile.d and will set the aliases for grep to show coloured matches.

Version-Release number of selected component (if applicable):

Comment 1 Matt Perry 2003-10-20 22:36:12 UTC
Not worth making attachments, I guess. 

Put this in /etc/profile.d/colorgrep.csh:

  alias grep 'grep --color=tty'

Put this in /etc/profile.d/colorgrep.sh:

  alias grep='grep --color=tty' 2>/dev/null

Comment 2 Tim Waugh 2003-10-21 08:59:43 UTC
Guaranteed that as soon as this happens there will be bug reports saying to turn
it off.  This is a user preference thing I think.

Note You need to log in before you can comment on or make changes to this bug.