I wanna match a specific pattern using grep(). My pattern has two parts:
1. exclude "." or ".." (to exclude the current and parent directory in unix) 2. the file type is jpg.
The first pattern I am using is !/^\.\.?$/ The second is /\.jpg$/i
How to combine them together? using two greps or a single one?
You don't need both patterns because a file name *CANNOT* match both of those patterns at the same time. Just use /\.jpg$/i.
John -- use Perl; program fulfillment
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>