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
-- 
users mailing list
users@lists.fedoraproject.org
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

Reply via email to