Add Comment

You are not currently logged in. If you do not have a user account then please consider creating one and logging in before you post your comment. This will allow you to track replies to your comment, and take part in the site much more freely.

To add your comment, fill in all the boxes below and then preview it to make sure you're happy with the way that it looks.

This is the comment you were replying to, attached to the article grep: highlighting matches in color:


Re: grep: highlighting matches in color
Posted by JoshTriplett (66.93.xx.xx) on Mon 6 Nov 2006 at 22:54
I do the same thing. Solving this requires two steps:
  1. To make grep print color even into a pipe, you need the option --color=always. *Don't* put this option into GREP_OPTIONS, unless you want to unleash all manner of insanity and brokenness. Instead, if you don't want to always type grep --color=always, you might make an alias or shell function "cgrep".
  2. To make less interpret color escape sequences, you need the -R option. export LESS=-R in your shell startup script.

Username:Anonymous
Title:
Your Comment:

Posting Format:

 

Inappropriate comments will be removed.

Some help on entry formatting is available

User Login

Username:

Password:

[ Advanced Login ]

Register Account

Quick Site Search