I tried a few different searches, but couldn't turn up anything that was really helpful for what I would like to do.

I have several good size websites with ~100+ pages of code each. I use Mason and it helps to manage things and reuse code, etc. But sometimes I want to find a certain piece of code, but have no idea where to find it, and don't want to look through dozens of files to locate it.

Is there some program or script or something that will index my scripts/pages and let me search, then show me the path to my file? I don't want to index my whole server, and I want it to be site specific so it would only entail the site's folder and cgi-bin. Any ideas??

I realize I could do this any number of ways myself, including some sort of grep function (I'm not so grep talented). But I want to limit it to a folder (and its subfolders)...

Hopefully I am not off of the beaten path topic-wise. I want to know what other people do.


Michael Jensen

In reply to Searching your code by inblosam

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.