views:

440

answers:

6

Possible Duplicate:
Tools to search for strings inside files without indexing

Before I make one, any good tools out there for free/cheap that will recurse through all files in a directory and search for a text string in them? Need to find an instance of a string in any configuration files laying around.

Kind of like a Windows Search "find files that contain..." on steroids?

Oops - This is pretty much a duplicate question, sorry, didn't find the other one before

A: 

I use total commander. It has a search in string function for all files in a directory tree.

Mercer Traieste
+2  A: 

Are you using a Unix variant? Because that's precisely what grep does. If you're using Windows, you can get it here

inkedmn
A: 

If you're on *nix, you can always use grep for in-file searching.

Electro
+1  A: 
C:\>find /?
Searches for a text string in a file or files.

FIND [/V] [/C] [/N] [/I] [/OFF[LINE]] "string" [[drive:][path]filename[ ...]]

  /V         Displays all lines NOT containing the specified string.
  /C         Displays only the count of lines containing the string.
  /N         Displays line numbers with the displayed lines.
  /I         Ignores the case of characters when searching for the string.
  /OFF[LINE] Do not skip files with offline attribute set.
  "string"   Specifies the text string to find.
  [drive:][path]filename
             Specifies a file or files to search.

If a path is not specified, FIND searches the text typed at the prompt
or piped from another command.
Ken Browning
+2  A: 

Windows Grep is quite good. http://www.wingrep.com/

Oren
+3  A: 

IF you are on Windows, you can still use unix tools. http://www.cygwin.com/ will install something that looks like the command prompt in windows but it has a huge host of unix utils.

cd ~/cygdrive/c/
grep -ir "the string" *
Mark L