ZDNet UK


Skip to Main Content

ZDNet.co.uk - Winner of Best Business Website 2007
  1. Home
  2. News
  3. Blogs
  4. Reviews
  5. Prices
  6. Resources
  7. Community
  8. My ZDNet

 

ZDNet UK RSS Feeds


IT Jobs

Application development Toolkit

Let Windows Grep do the searching

Mary Ann Richardson

Published: 25 Apr 2002 12:26 BST

  • Email
  • Trackback
  • Clip Link
  • Print friendly
  • Post Comment

As a longtime IT trainer, I've developed a large collection of course materials, which I routinely refer to when developing new materials for my latest class. But searching for a particular test or exercise using the Windows Find command can be as difficult as searching through paper files.

I longed for the grep command that I used in my UNIX days. Grep made it easy to search for files that contained a specific text string so that I would be able to specify a word or phrase, like "file save" or "cut and paste," and find a document on that topic. Then, I came across a program called Windows Grep.

Windows Grep is a text-search utility that works like the UNIX/Linux grep utility but runs on Windows machines. With Windows Grep, you can search for text strings in binary files, such as word processor documents, databases, spreadsheets, and executables, and you can use it to search for and replace specific text strings in ASCII text files, such as program source, HTML, RTF, and batch files.

I Grep...You Grep...
As support pros, we're always trying to find innovative ways to help our end users and ourselves work more efficiently. Windows Grep can do just that when it comes to finding text strings. Perhaps you're searching for a specific directory reference in those batch files you created last year or you're helping an end user find a particular company name from a list of 20 Excel spreadsheets. Post a comment to this article and tell us how you use Windows Grep or a similar tool to make your job a little easier.

Searching with Windows Grep

You don't need to know anything about the UNIX grep utility to begin searching with Windows Grep. Windows Grep opens to a Search Assistant wizard that guides beginners through their first search. To demonstrate the Search Assistant, I will use it to search for all course materials on my Zip disk that pertain to spell checking.

Figure A

Figure A shows the first screen of the Search Assistant where you enter the text string; in this case, I entered spell. The wizard also allows you to indicate how you want the string to be searched, such as Find Whole Words Only, Soundex, etc. In this example, I performed a Normal (Regular Expression) search.

After clicking Next, you'll see the screen shown in Figure B, where you navigate to the drive you want to search and click the Right Arrow button to move it to the Includebox.

Figure B

After clicking Next, you'll see the screen shown in Figure C. Since I knew that the course material I was looking for was created in Microsoft Word, I selected the *.doc file type and clicked the Right Arrow button.

Figure C

Next

Previous

1 2


  • Email
  • Trackback
  • Clip Link
  • Print friendly Print with Dell

Did you find this article useful?


Company/Topic Alerts

Create a new alert from the list below:











Featured Talkback

The fact is: Software developers today are really designers and not coders. The reason that business anlaysts exist today to model solutions is because they understand the value of designing software before writing it. All too often developers create code that has little value because they do not understand that business classes interact with other classes within the confines of a working model or pattern.

By: 1000165269

Read full story:
Making sense of agile modelling