Solved

Search within Files

Posted on 2011-09-14
7
272 Views
Last Modified: 2012-05-12
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
Comment
Question by:gisvpn
  • 3
  • 2
  • 2
7 Comments
 
LVL 8

Assisted Solution

by:bright12
bright12 earned 100 total points
ID: 36535093
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
 
LVL 21

Expert Comment

by:Hendrik Wiese
ID: 36535097
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
 

Author Comment

by:gisvpn
ID: 36535146
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
Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

 
LVL 21

Accepted Solution

by:
Hendrik Wiese earned 400 total points
ID: 36535161
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
 
LVL 8

Expert Comment

by:bright12
ID: 36535162
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
 

Author Comment

by:gisvpn
ID: 36814864
Thanks for the posts does anyone know if there is a solution that will parse all the common file extensions ?

Thanks

Gisvpn
0
 
LVL 21

Expert Comment

by:Hendrik Wiese
ID: 36815465
All the other files but not swf extensions included as this is not a common file type.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
While working, an annoying popup showing below will come and we cannot cancel or close it form the screen. The error message will come again and again.
This Micro Tutorial will give you basic overview of the control panel section on Windows 7. It will depth in Network and Internet, Hardware and Sound, etc. This will be demonstrated using Windows 7 operating system.
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question