in reply to Using grep with wildcards

A couple things.
First read perlre for the answer to your grep question.
However, directories can contain periods in their name, so that's not the best way to test :-)
To test if it's a dir, use if -d $somename

Replies are listed 'Best First'.
Re: Re: Using grep with wildcards
by Sherlock (Deacon) on Apr 21, 2001 at 00:20 UTC
    Thanks the_slycer, that line works great.

    - Sherlock