Last Updated: February 25, 2016
·
441
· jveiga

Greping for code with syntax hightlighting

When you're looking for something in code from the command line

try piping to pygmentize

grep -R 'def index' app/**/*rb | pygmentize -l ruby