The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Inside search
asmith
post 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
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Jun 16 2008, 06:07 AM
Post #2


.
********

Group: WDG Moderators
Posts: 9,661
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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post 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).
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jun 16 2008, 02:26 PM
Post #4


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,733
Joined: 9-August 06
Member No.: 6



QUOTE(Christian J @ Jun 16 2008, 01:07 PM) *

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. cool.gif

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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Jun 16 2008, 03:22 PM
Post #5


.
********

Group: WDG Moderators
Posts: 9,661
Joined: 10-August 06
Member No.: 7



QUOTE(pandy @ Jun 16 2008, 09:26 PM) *

Some even lets you search disk files without opening them. cool.gif

What's the difference from searching a specified directory? unsure.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jun 16 2008, 03:35 PM
Post #6


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,733
Joined: 9-August 06
Member No.: 6



I missed that part. Got tired reading after "all open files". blush.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 28th April 2024 - 04:58 AM