> On Thursday, July 21, 2011 8:50:32 AM UTC-5, vagn wrote:
>          find $d -type f -name \*.yaml -mtime $days |
>          sort -r |
>          tail -n +2 |
>          xargs -n50 /bin/rm -f

All this is really better than…?

         find $d -type f -name \*.yaml -mtime $days -exec rm -f {} \;

-- 
Jo Rhett
Net Consonance : net philanthropy to improve open source and internet projects.



-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to