On Linux I would use the "locate" command for this.

I believe that you will get this as part of Cygwin.

A lot of people are going to recommend File::Find. What it provides is a way to program the same brute-force search that you already found too slow. If you want to roll your own, this is not going to be very fast. However if you have a regular program run, search your drive, and save it as a simple text file that you grep, you will find a massive speed increase. You can get much better speed increases by using well-structured indexing, tying hashs to a dbm, etc, but simple text is a much easier place to start and is probably fast enough.

Even if you don't have grep, rolling your own is easy:

perl -ne "print if /hello/i" *.txt
(On Linux switch the type of quote.)

Or take a look at the PPT project.

EDIT
I realized that my comment about File::Find may confuse. What I meant is that you don't want to run it interactively. However you may want to run it every day or so, then interactively read its output. (This is how the locate tool I mentioned above works.)


In reply to RE (tilly) 1: Searching my network by tilly
in thread Searching my network by Poetic Justice

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.