Solved

Search within Files

Posted on 2011-09-14
7
271 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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
You may have a outside contractor who comes in once a week or seasonal to do some work in your office but you only want to give him access to the programs and files he needs and keep privet all other documents and programs, can you do this on a loca…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
This Micro Tutorial will teach you how to change your appearance and customize your Windows 7 interface to your unique preference. This will be demonstrated using Windows 7 operating system.

777 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