Engine23

Command Line – search

Using terminal: $ grep --color=auto -Ri "page.xml" *

 --color=auto will color the findings
-R will do a recursive search
-i is case insensitive
If you want to search but not show results from hidden folders
$ grep -R "page.xml" * | grep -v '/.svn/'
If you want to do a recursive search, do not search a certain type of folder ( hidden ) and color the results
$ grep -Ir --color=auto --exclude="*\.svn*" "page.xml" *

Share: