January 25, 2010

Linux commands

Find the test in files, show fund lines with line number and highlight it
$ find . -name '*.php' -exec grep -Hn --color "TEXT_TO_FIND" {} \;

No comments:

Post a Comment