tool to search within multiple files

rh71

No Lifer
Aug 28, 2001
52,844
1,049
126
I had been using Homesite / Dreamweaver but with a new OS image I was wondering if I could get a simpler tool to do just this task.

I want to search through multiple files such as .cfm or .vbs/.asp for specific text all at once. With Homesite, I could go to Edit|Search and it allowed me to select a whole directory and it would search through all the files there for the text I specify and returns a list of files that contain it. Perhaps this is called global find. It also allowed for global replace.

Is there something simpler out there that could do the same?
 

Ken g6

Programming Moderator, Elite Member
Moderator
Dec 11, 1999
16,836
4,815
75
Plus find and, for replacement, sed. If using Windows you can get Cygwin or MinGW to do this stuff, but you'll have to specify the path to find to differentiate it from the Windows find command.

Oh, wait, you said simple. This, perhaps?
 

rh71

No Lifer
Aug 28, 2001
52,844
1,049
126
grepWin works good. Thx all anyway.
 
Last edited:

catellus

Junior Member
Oct 4, 2006
18
0
66
windows comes with findstr. It has "search sudirectories" option and regular expressions too.

and for, as in: for /r c: \topfolder %f in (*.txt) do @find "needle" %f

(arrgh!, stupid smileys! :) ) There should not be a space between "c:" and "\topfolder" - sorry)

For, of course, is good for lots more than searching. Just don't forget the space between "in" and "(".
 
Last edited: