• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

tool to search within multiple files

rh71

No Lifer
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?
 
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?
 
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:
Back
Top