using rm *.rpm but keep some files?

Frank Murphy frankly3d at gmail.com
Sun Jan 1 12:56:20 UTC 2012


I'm trying to remove rpms from my local repo.
But keep some named files.

Would this work:
find /path/to/repo/*.rpm | grep -v "foo* bar*" | rm *.rpm

-- 
Regards,

Frank Murphy--exclude
UTF_8 Encoded
Friend of fedoraproject.org


More information about the users mailing list