On Sun, 01 Jan 2012 12:56:20 +0000 Frank Murphy <frankly3d@xxxxxxxxx> wrote: > 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 Simple solution: mkdir tmp mv /path/to/repo/foo* /path/to/repo/bar* tmp find /path/to/repo/ -name *.rpm -delete mv tmp/* /path/to/repo/ -- Jussi Lehtola Fedora Project Contributor jussilehtola@xxxxxxxxxxxxxxxxx -- users mailing list users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org