Rocking the blogosphere
Apple Online Store

grep with color

Wow, I didn’t realize until today that good ol’ GNU grep supports color highlighting. Up until now, I had been installing rgrep from the jed distribution everywhere so that I could get recursive grepping and highlighting. But GNU grep has both of these now, which means I just need to add:

alias grep='grep --recursive --color=auto'

Del.icio.us Digg Reddit Technorati

Possibly related posts

Comments

  1. March 15th, 2005 | 1:54 am

    This goes in the “cool things I learned on the internet today” column. Excellent!

Leave a reply

Apple Online Store
Apple Online Store