SOLVED Re: using rm *.rpm but keep some files?

Frank Murphy frankly3d at gmail.com
Sun Jan 1 13:15:52 UTC 2012


On 01/01/12 13:10, Theodore Papadopoulo wrote:

>> Would this work: find /path/to/repo/*.rpm | grep -v "foo* bar*" |
>> rm *.rpm
>>
>
> Make it
>
> find /path/to/repo/*.rpm -print | grep -v "foo* bar*" | xargs rm
>
> and that should work (not tested).
>
Gave it a test, it works.
Thanks.


-- 
Regards,

Frank Murphy
UTF_8 Encoded
Friend of fedoraproject.org


More information about the users mailing list