in reply to RE: Recursively grep through directory trees.
in thread Recursively grep through directory trees.

Thanks for the tips! I've modified the above snippet, including your suggestions, as well as added a few regex's to strip out initial whitespace, as well as added the ability to specify a file extension (actually, a file pattern match).

For example, I just used "grep checkbox php" to grep all php files for a checkbox.

  • Comment on RE: RE: Recursively grep through directory trees.