FAQ
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

Search Discussions

  • John Erjavec V at Nov 16, 1999 at 9:19 pm

    At 10:44 AM 11/16/99 -0500, Rich Bowen wrote:
    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.
    Don't you just hate when that happens. At least you still have something
    that works out of the deal, though.
    Any thoughts on where we should put this?
    Well, it works (IMHO) either under the Web category, or under the
    UNIX:System_administration category. Not particularly well in either, but
    there's not something for both, as far as I can tell.

    -JEV
    --
    John Erjavec V ## sig@jevonline.com ##
    http://www.jevonline.com/jev/index.html
    "Go not unto the Usenet for advice, for you will be told both yea and nay
    (and
    quite a few things that just have nothing at all to do with the question)."
    (Seen in a .sig somewhere.)
  • Rich Bowen at Nov 16, 1999 at 9:21 pm

    John Erjavec V wrote:
    At 10:44 AM 11/16/99 -0500, Rich Bowen wrote:
    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.
    Don't you just hate when that happens. At least you still have something
    that works out of the deal, though.
    Any thoughts on where we should put this?
    Well, it works (IMHO) either under the Web category, or under the
    UNIX:System_administration category. Not particularly well in either, but
    there's not something for both, as far as I can tell.
    Works just fine on Win32 also, so the UNIX category would be rather
    misleading.

    Rich
  • Kurt D. Starsinic at Nov 16, 1999 at 9:35 pm

    On Tue, Nov 16, 1999 at 04:21:17PM -0500, Rich Bowen wrote:
    John Erjavec V wrote:
    At 10:44 AM 11/16/99 -0500, Rich Bowen wrote:
    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.
    Don't you just hate when that happens. At least you still have something
    that works out of the deal, though.
    Any thoughts on where we should put this?
    Well, it works (IMHO) either under the Web category, or under the
    UNIX:System_administration category. Not particularly well in either, but
    there's not something for both, as far as I can tell.
    Works just fine on Win32 also, so the UNIX category would be rather
    misleading.
    I think that this yearns for a new category. How about Search or Find,
    depending on whether you're one of those the-glass-is-half-empty kind of
    people or the-glass-is-half-full kind of people?

    Peace,
    * Kurt Starsinic (Kurt.Starsinic@isinet.com) --------- Technical Specialist *
    `A programmer using . . . ParcWorks Smalltalk . . . gets as much benefit |
    out of a sanctimonious mouthing about not using gotos . . . as a modern |
    air traffic controller gets out of the bits in Deuteronomy about the |
    penalties for having sex with camels.' - Alan Carter and Colston Sanger |
    Institute for Scientific Information http://www.isinet.com/
  • John Erjavec V at Nov 16, 1999 at 10:11 pm

    At 04:25 PM 11/16/99 -0500, Kurt D. Starsinic wrote:
    I think that this yearns for a new category. How about Search or
    Find,
    depending on whether you're one of those the-glass-is-half-empty kind of
    people or the-glass-is-half-full kind of people?
    I like this much better. I also prefer Search, more because there is a
    command called find than any other reason.

    -JEV
    --
    John Erjavec V ## sig@jevonline.com ##
    http://www.jevonline.com/jev/index.html
    "I'll say it again for the logic impaired." --Larry Wall
  • John Nolan at Nov 16, 1999 at 10:13 pm

    Well, it works (IMHO) either under the Web category, or under the
    UNIX:System_administration category. Not particularly well in either, but
    there's not something for both, as far as I can tell.
    Works just fine on Win32 also, so the UNIX category would be rather
    misleading.
    I think that this yearns for a new category. How about Search or Find,
    depending on whether you're one of those the-glass-is-half-empty kind of
    people or the-glass-is-half-full kind of people?

    It's a file tool, isn't it. It should go under
    some kind of file or document category.

    If we can't find a good category for it,
    then let's just file it under "Jazz".
    Or maybe "World Music". Heh. :)

    --
    ##--------------------------------
    ## John Nolan
    ## jpnolan op net
    ##--------------------------------
  • Rich Bowen at Nov 17, 1999 at 1:33 am

    John Nolan wrote:

    It's a file tool, isn't it. It should go under
    some kind of file or document category.
    But it's also a web tool. You can give it a directory, or a URL, and it
    recurses from there. OTOH, I really like the "World Music" category.
    Obscure, meaningless, and completely uninformative. Appropriate for a
    search function! ;-)

    Rich
  • Brad Baxter at Nov 17, 1999 at 2:26 pm
    I know, how about "Data". :-)
    On Tue, 16 Nov 1999, Rich Bowen wrote:
    But it's also a web tool. You can give it a directory, or a URL, and it
    recurses from there. OTOH, I really like the "World Music" category.
    Obscure, meaningless, and completely uninformative. Appropriate for a
    search function! ;-)

    Rich
  • Rich Bowen at Nov 17, 1999 at 2:36 pm

    Brad Baxter wrote:

    I know, how about "Data". :-)
    Or, better yet, we could have a ones_and_zeroes category. :-)

    Rich
  • John Porter at Nov 17, 1999 at 3:25 pm

    Rich Bowen wrote:
    John Nolan wrote:
    It's a file tool, isn't it. It should go under
    some kind of file or document category.
    But it's also a web tool. You can give it a directory, or a URL, and it
    recurses from there.
    I agree. Most (many ?) web-schlurping programs can be
    told to treat the local file system as a 'web site'
    using URLs of the form 'file:/...'. Given that, the
    Web file paradigm is more general than the "normal"
    file paradigm.

    --
    John Porter
  • Rich Bowen at Nov 17, 1999 at 2:16 am

    I think that this yearns for a new category. How about Search or Find,
    depending on whether you're one of those the-glass-is-half-empty kind of
    people or the-glass-is-half-full kind of people?
    Agreeing with John that "Search" is better than "Find" ('Tis more
    blessed to search than to find, or something like that) I'm uploading it
    as "Search".

    Rich
  • Kurt D. Starsinic at Nov 17, 1999 at 3:54 pm

    On Tue, Nov 16, 1999 at 09:16:33PM -0500, Rich Bowen wrote:
    I think that this yearns for a new category. How about Search or Find,
    depending on whether you're one of those the-glass-is-half-empty kind of
    people or the-glass-is-half-full kind of people?
    Agreeing with John that "Search" is better than "Find" ('Tis more
    blessed to search than to find, or something like that) I'm uploading it
    as "Search".
    I've created the category. Please be patient with some CPAN technical
    difficulties; your script will appear in the index Real Soon Now.

    Peace,
    * Kurt Starsinic (Kurt.Starsinic@isinet.com) --------- Technical Specialist *
    `The future masters of technology will have to be lighthearted and |
    intelligent. The machine easily masters the grim and the dumb.' |
    -- Marshall McLuhan |
    Institute for Scientific Information http://www.isinet.com/
  • Rich Bowen at Nov 17, 1999 at 4:49 pm

    "Kurt D. Starsinic" wrote:
    On Tue, Nov 16, 1999 at 09:16:33PM -0500, Rich Bowen wrote:
    I think that this yearns for a new category. How about Search or Find,
    depending on whether you're one of those the-glass-is-half-empty kind of
    people or the-glass-is-half-full kind of people?
    Agreeing with John that "Search" is better than "Find" ('Tis more
    blessed to search than to find, or something like that) I'm uploading it
    as "Search".
    I've created the category. Please be patient with some CPAN technical
    difficulties; your script will appear in the index Real Soon Now.
    I noticed that the scripts section on www.cpan.org was glorphed. Is that
    part of the technical difficulties, or is that something else?

    Rich
  • Kurt D. Starsinic at Nov 17, 1999 at 7:45 pm

    On Wed, Nov 17, 1999 at 11:49:05AM -0500, Rich Bowen wrote:
    I noticed that the scripts section on www.cpan.org was glorphed. Is that
    part of the technical difficulties, or is that something else?
    Yes, I was using the familiar term `technical difficulties' instead
    of the technical term `glorph'. ;^)

    CPAN is fixed now, and changes should be propagating outward any
    time now.

    Peace,
    * Kurt Starsinic (Kurt.Starsinic@isinet.com) --------- Technical Specialist *
    `The term `Internet' has the meaning given that term in |
    section 230(f)(1) of the Communications Act of 1934.' |
    -- H.R. 3028, Trademark Cyberpiracy Prevention Act |
    Institute for Scientific Information http://www.isinet.com/

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupscripts @
categoriesperl
postedNov 16, '99 at 3:44p
activeNov 17, '99 at 7:45p
posts14
users6
websiteperl.org

People

Translate

site design / logo © 2021 Grokbase