Re: [htdig] Can htdig index paragraphs in text files?

Subject: Re: [htdig] Can htdig index paragraphs in text files?
From: Geoff Hutchison (
Date: Sun Dec 19 1999 - 06:42:07 PST

On Sun, 19 Dec 1999, Mike Franks wrote:

> Sorry if this is a dumb question, but I can't find it in the docs. Can
> htdig be used to index and return individual paragraphs in one or more
> text files? I have almost 20,000 bibliographic entries spread across 26
> files and each entry is separated by a blank line. I want to be able to
> search across all files and return only those entries that
> match. Obviously returning the whole file would be way too much. I could
> break them into files with a Perl script, but my sysadmin probably
> wouldn't like 20,000 tiny files.

Alas, no. If these were in HTML, htsearch would (by default) return the
first match by anchor, which is essentially what you want. So if you're
willing to write a Perl script to break them up, you might consider adding
in <a name="[whatever]"></a> tags.

-Geoff Hutchison
Williams Students Online

To unsubscribe from the htdig mailing list, send a message to
You will receive a message to confirm this.

This archive was generated by hypermail 2b28 : Sun Dec 19 1999 - 06:56:02 PST