Solved

Search within Files

Posted on 2011-09-14
7
269 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
Comment Utility
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 20

Expert Comment

by:Hendrik Wiese
Comment Utility
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
Comment Utility
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
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 
LVL 20

Accepted Solution

by:
Hendrik Wiese earned 400 total points
Comment Utility
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
Comment Utility
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
Comment Utility
Thanks for the posts does anyone know if there is a solution that will parse all the common file extensions ?

Thanks

Gisvpn
0
 
LVL 20

Expert Comment

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

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

One of the features I've come to appreciate about Windows 7 and Windows Server 2008 R2 is the ability to pin applications to the task bar. As useful a feature as I've found this, it does have some quirks.  For example, have you ever tried pinning an…
OfficeMate Freezes on login or does not load after login credentials are input.
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.
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum editing capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.

771 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now