Solved

Search within Files

Posted on 2011-09-14
7
270 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 20

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
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 
LVL 20

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 20

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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

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…
When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

895 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

11 Experts available now in Live!

Get 1:1 Help Now