|
Home > Archive > Unix Shell > December 2007 > Find files not matching a particular pattern
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Find files not matching a particular pattern
|
|
|
| I would like to find files not matching *.jpg (case insensitive), can
anyone tell me how to use GNU find to do that? I know I can use -
iname to be case insensitive but I can't find out how to exclude all
the files that match rather than include them.
| |
| Glenn Jackman 2007-11-30, 7:35 am |
| At 2007-11-30 05:35AM, "Eliot" wrote:
> I would like to find files not matching *.jpg (case insensitive), can
> anyone tell me how to use GNU find to do that? I know I can use -
> iname to be case insensitive but I can't find out how to exclude all
> the files that match rather than include them.
find . -type f \( ! -iname \*.jpg \) -print
--
Glenn Jackman
"You can only be young once. But you can always be immature." -- Dave Barry
| |
| Rikishi 42 2007-12-01, 1:22 pm |
| On 2007-11-30, Glenn Jackman <glennj@ncf.ca> wrote:
> At 2007-11-30 05:35AM, "Eliot" wrote:
>
> find . -type f \( ! -iname \*.jpg \) -print
or also
find . -type f ! -iname '*.jpg'
--
There is an art, it says, or rather, a knack to flying.
The knack lies in learning how to throw yourself at the ground and miss.
Douglas Adams
|
|
|
|
|