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
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