Grep with colour

by Matt Hamilton on Nov 06, 2008
Filed Under:

Never knew this before:

grep --color foo bar.txt

will search for 'foo' in the file bar.txt and will highlight the colour. Works on MacOS and FreeBSD (and probabaly Linux).

Filed under: ,

Commenting has now closed on this post.

Follow us

— via Twitter

Is proudly sponsoring #BlueLightCamp today. If you want to come talk Open Source content management @HammerToe is there #blcamp
last month