Web Hosting Talk







View Full Version : Looking for a particular program to search for code in multiple files


reddem0n
02-18-2009, 06:26 PM
Does anyone know of a program that can search a certain folder and look inside each one automatically for a certain code I would put in the search query.
So for example if there were 5 text files, and I was looking for a particular code that is only located in one of the files. I would enter it in, and it would return back the result in where it is located.
Any suggestions would be appreciated.

Harzem
02-18-2009, 06:27 PM
notepad++ (http://notepad-plus.sourceforge.net/uk/site.htm) works perfectly.

111111z
02-18-2009, 06:28 PM
Is this windows or linux?

awatson
02-18-2009, 07:02 PM
grep -r [term] *

csparks
02-18-2009, 07:19 PM
Crimson Editor and Netbeans, and NuSphere PhpEd can all do this.

reddem0n
02-18-2009, 08:43 PM
thank you so much guys, crimson editor did the trick for me nice and easy. appreciate all the help.

mg-
02-18-2009, 10:02 PM
PhpEd won't search subdirectories, only the directory you specify... that is really annoying.

aradapilot
02-19-2009, 10:54 AM
I use Notepad++ or PhpED on windows at work, and Geany on Linux at home. All of them have this functionality.

Mike - Limestone
02-19-2009, 06:52 PM
Good idea with grep -- awesome tool. :)
-mike