Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 285
  • Last Modified:

Search within Files

Hello,

I have a website held within a folder. I need to try to search within the folders for some key words. I think this would need a plug in. However the files I have contained within the website are :

HTML files
CSS files
JS files
PHP files
SWF files
TXT Files

I would like to be able to search within these files for words and simply list the files that contain these words ?

Is this possible with all or some of the file types above?

Regards,

GISVPN
0
gisvpn
Asked:
gisvpn
  • 3
  • 2
  • 2
2 Solutions
 
bright12Commented:
You can use WinGrep http://gnuwin32.sourceforge.net/packages/grep.htm

With this program you can search for words inside a file. If it find a word it will display it and put the line number in front of it.
I use the command line version where the command is as follows:

grep -in "<Search Item>" *.[extension]

Replace the <Search Item> for the word that you looking for and the [extension] for the proper extension like .html
0
 
Hendrik WieseCommented:
I know that Adobe Dreamweaver can do this. You can download the Trial version here.

All you do is create a new site using the site manager, and then press ctrl + F and select entire current directory which will find any keyword you enter in the folder you configured when setting up your site in site manager.
0
 
gisvpnAuthor Commented:
Hi bright12,

Thanks for the post. does this work with every file type? Does it know how to parse every type of file extension?

Hi HendrikWiese:

Thanks also for the post; do you know what extensions Adobe Dreamweaver supports?

Regards,

GISVPN
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
Hendrik WieseCommented:
Dear qisvpn,

Dreamweaver supports:
HTML files
CSS files
JS files
PHP files
TXT Files and more

But not SWF Files. You would have to use Adobe Flash to edit the original .fla file which will manipulate and change the SWF file export when you play your Flash file.
0
 
bright12Commented:
This will work only for text formatted (based) files. Meaning it won't work with Office created files (at least so far I know).

So if you can open a file with notepad, you use this program.
0
 
gisvpnAuthor Commented:
Thanks for the posts does anyone know if there is a solution that will parse all the common file extensions ?

Thanks

Gisvpn
0
 
Hendrik WieseCommented:
All the other files but not swf extensions included as this is not a common file type.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 3
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now