Re: A problem of pattern matching

2004-10-09 Thread John W. Krahn
Teng Wang wrote: 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 t

A problem of pattern matching

2004-10-09 Thread Teng Wang
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 s