Search tool

[email protected] (Rich Bowen)
Newsgroups perl.scripts
Organization RCBowen.com
Message-ID <[email protected]>
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
keywords
       keywordsearch [-Hfv] [-l log] [-o outfile] [-D depth] URL
keywords
Options:
    -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)
    -v          Verbose
    -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?

Rich
-- 
http://www.ApacheUnleashed.com/
Lexington Perl Mongers - http://lexington.pm.org/
PGP Key - http://www.rcbowen.com/pgp.txt
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.