2
votes
1answer
27 views

Colourized command for grep output

Hey forum! I have recently begun working with Debian and do so in a purely command-line environment. I connect from a windows desktop through puTTY using asymmetric encryption rather than passwords. ...
3
votes
3answers
78 views

Use different colors for every another grep

How can I configure grep that I could highlight in color smarter? By using different colors? Problem : "grep --color" default use red to highlight matches, but it still difficult to read for ...
4
votes
2answers
2k views

Grep in Mac OS X's terminal — only displaying one color

I am used to grep being able to color the filename, the line number, and the match itself. These three ought to be different colors. This works flawlessly on a Linux terminal and even MinGW on ...
0
votes
1answer
307 views

How to grep for VIM colour schemes that do not use dark blue?

I simply cannot see the ANSI BLUE colour in a terminal with a black background. How does one grep the installed VIM colorschemes for one that does not use that colour at all? I often SSH into ...
2
votes
3answers
2k views

How do I get grep color in the file names before each match?

If I run grep -ir "somethingtomatch" . from the current directory, I typically get results like this: ./some/path/file1.html: filecontent filecontent keyword filecontent ./some/path/file2.html: ...
82
votes
5answers
17k views

Less and Grep: Getting colored results when using a pipe from grep to less

I use the --colour option of grep a lot, but I often use less as well. How can I pipe grep results to less and still preserve the coloring. (Or is that possible?) grep "search-string" -R * --colour | ...