grep and less color recipe

13 Feb 2009

Just a quick recipe for colouring grep output in less, because I always have to look it up:

grep --color=always -A 5 -r foo * | less -R
comments powered by Disqus

  « Previous: Next: »