Re: Searching Text Files

Subject: Re: Searching Text Files
From: Ed <glassnet -at- gmail -dot- com>
To: "techwr-l List" <techwr-l -at- lists -dot- techwr-l -dot- com>
Date: Tue, 23 Sep 2008 06:32:11 -0400

The combination of find and grep looks most promising. I started with
Dossy's snippet and modified to:

find . -name \*.xml -exec grep "<acroterm>"[A-Za-z0-9]*"</acroterm>"
"{}" \; > test1.txt

That produces a text file with all lines that contain acroterm tags.
The next step will require deleting all of the text on each line
EXCEPT what is between those two tags.

Sorting the acronyms and deleting duplicates is desirable too.

BTW, Powergrep is useful, but I used Astrogrep to test the regex on my
Windows box.


ComponentOne Doc-To-Help gives you everything you need to author and
publish quality Help, Web, and print content. Perfect for technical
authors, developers, and policy writers. Download a FREE trial.

True single source, conditional content, PDF export, modular help.
Help & Manual is the most powerful authoring tool for technical
documentation. Boost your productivity!

You are currently subscribed to TECHWR-L as archive -at- web -dot- techwr-l -dot- com -dot-

To unsubscribe send a blank email to
techwr-l-unsubscribe -at- lists -dot- techwr-l -dot- com
or visit

To subscribe, send a blank email to techwr-l-join -at- lists -dot- techwr-l -dot- com

Send administrative questions to admin -at- techwr-l -dot- com -dot- Visit for more resources and info.


Searching Text Files: From: Ed

Previous by Author: Re: Searching Text Files
Next by Author: Re: Need examples of system documentation
Previous by Thread: Re: Searching Text Files
Next by Thread: RE: Searching Text Files

What this post helpful? Share it with friends and colleagues:

Sponsored Ads