in reply to All files in dir to Storable.pm data

That's definately a cute hack, but probably only fully useful on systems that lack an rgrep (or a grep -rl ) to do the same thing.

Update: I've been asked to post the syntax for rgrep so here it is:

rgrep "the word I'm looking for" * grep -rl "the word I'm looking for" *

Where * is the strating directory/dilenames to search through. Excecuting those commands will search every directory below the one you are currently in.

____________________
Jeremy
I didn't believe in evil until I dated it.

Replies are listed 'Best First'.
Re: Re: All files in dir to Storable.pm data
by knobunc (Pilgrim) on May 14, 2001 at 18:00 UTC

    Or for people without rgrep:

    find . -type f | xargs grep "whatever you want"

    Which I alias (using bash) to:

    alias superfind='find . -type f | xargs grep'
    For that mod 1970's feel.

    -ben

      You won't get the filename prefix if xargs happens to hand grep only one item though. Always throw an extra /dev/null in there, which will be opened and bypassed, but is enough to ensure more than one filename at all times:
      find . -type f -print | xargs grep "whatever you want" /dev/null

      -- Randal L. Schwartz, Perl hacker

      But to make sure you don't get screwed up by funny filenames, use:

      find . -type f -print0 | xargs -0r -iXX grep "word" XX

      I don't know how to work that into an alias though.

      ____________________
      Jeremy
      I didn't believe in evil until I dated it.