I misunderstood a customer's instructions, and spent two days putting
together a really nice search tool that was not at all what they wanted.
Sheesh. So, I figured I'd put it up on CPAN, and start over.
Here's what it does:
Usage: keywordsearch [-rfv] [-e suffix] [-l log] [-o outfile] -d dir
keywordsearch [-Hfv] [-l log] [-o outfile] [-D depth] URL
-d Directory to search
-e File extension to search (i.e. .txt .html)
Default behavior is to search only text-type files
-f Output the frequency of the words
-D Depth of search, or how many levels down to go
(Web search) (Default is 0)
-r Recurse subdirectories (File search)
-l Log file for problems found
-o Output file (Default is STDOUT)
-H Restrict to the initial host (Web search)
In summary, it searches either a web site, or a local directory, for
keywords in text files.
Any thoughts on where we should put this?