Difference between revisions of "Dev Finding Things"

From Dreamwidth Notes
Jump to: navigation, search
(New page: == Grepping through code == Category: Development)
 
(Grepping through code)
Line 2: Line 2:
 
== Grepping through code ==
 
== Grepping through code ==
  
 +
In the directory you want to search:
 +
 +
<pre>rgrep -i [search term] *</pre>
 +
 +
To output the results of that search into a file in your home directory:
 +
 +
<pre>rgrep -i [search term] * > ~/filename.txt</pre>
  
  
 
[[Category: Development]]
 
[[Category: Development]]

Revision as of 11:33, 30 January 2009

Grepping through code

In the directory you want to search:

rgrep -i [search term] *

To output the results of that search into a file in your home directory:

rgrep -i [search term] * > ~/filename.txt