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

Roberto Ragusa mail at robertoragusa.it
Mon Jan 2 14:21:21 UTC 2012


On 01/02/2012 12:57 AM, Cameron Simpson wrote:

> On the subject of testing, I find it VERY useful to phrase tests like
> this:
> 
>   find /path/to/repo/*.rpm -print | grep -v "foo* bar*" | xargs echo rm
> 
> Remove the "echo" when happy.

My usual approach is a little variation, I add "|sh" at the end.

The logic is "ok, this is what I would have written manually".

-- 
   Roberto Ragusa    mail at robertoragusa.it


More information about the users mailing list