Differences

This shows you the differences between two versions of the page.

Link to this comparison view

linux:grep_recursively [2020/06/01 22:53] (current)
Line 1: Line 1:
 +====== Grep Recursively ======
 +
 +The following command will search your hard drive for a specific file type //*.php// and then execute the //grep// command on each of those files. ​ The //-Hn// switches will show the file name and the line number for each match.
 +
 +  find . -name "​*.php"​ -exec grep -Hn "​its_db.php"​ {} \;
  
comments powered by Disqus
linux/grep_recursively.txt · Last modified: 2020/06/01 22:53 (external edit)