Inside search |
Inside search |
asmith |
Jun 15 2008, 11:35 PM
Post
#1
|
Advanced Member Group: Members Posts: 198 Joined: 26-December 07 Member No.: 4,586 |
hey guys
I have some php files. Sometimes i need to search for a function name that is inside one of them. Looking at them one by one takes too much time. Is there anyaway any programm that let me search inside these files for a string ? the windows seach has something like "look in the file" , but it is not good. thanks |
Christian J |
Jun 16 2008, 06:07 AM
Post
#2
|
. Group: WDG Moderators Posts: 9,682 Joined: 10-August 06 Member No.: 7 |
Many better text editors let you search in multiple files, e.g. in all open files or in a specified directory.
|
Darin McGrew |
Jun 16 2008, 01:28 PM
Post
#3
|
WDG Member Group: Root Admin Posts: 8,365 Joined: 4-August 06 From: Mountain View, CA Member No.: 3 |
I would open a shell window and use the grep command.
If the files are in more than one subdirectory, then I would use the find command to get a list of files, and then use xargs to feed that list to the grep command. This works only if you have access to a shell (Linux, Mac OS X, Cygwin). |
pandy |
Jun 16 2008, 02:26 PM
Post
#4
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,736 Joined: 9-August 06 Member No.: 6 |
Many better text editors let you search in multiple files, e.g. in all open files or in a specified directory. Some even lets you search disk files without opening them. asmith, I'm not totally sure where you want to do this. On your own machine and you're running Windows? If so and if you don't have anything better than the Search utility that comes with Windows already, there are lots of file search programs you can download. Check the free- and shareware sites. Here's a free one: http://www.mythicsoft.com/agentransack/ . Been a while since I used it, but I used to think it was good. |
Christian J |
Jun 16 2008, 03:22 PM
Post
#5
|
. Group: WDG Moderators Posts: 9,682 Joined: 10-August 06 Member No.: 7 |
|
pandy |
Jun 16 2008, 03:35 PM
Post
#6
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,736 Joined: 9-August 06 Member No.: 6 |
I missed that part. Got tired reading after "all open files".
|
Lo-Fi Version | Time is now: 8th June 2024 - 02:59 AM |