Re: Remove all but .tif

From: Noah (Roger.Noah_at_YellowCorp.com)
Date: 07/12/05


Date: Tue, 12 Jul 2005 17:14:11 GMT

Kinda like this better.
find . \( -name "*.*" \) ! -name "*.tif"
Is there any way to make find ignore case?

"Noah" <Roger.Noah@YellowCorp.com> wrote in message
news:WESAe.838$zw4.177@newssvr12.news.prodigy.com...
> Hello all,
> Does anyone have a better way to remove all files in a directory except
for
> *.tif
> This is what I came up with so far.
> ls |egrep -vi .tif | xargs -i rm {}
>
> Thanks
>
>