On Sun, Mar 22, 2020 at 02:08:12AM +0100, Christian Weisgerber wrote: > - find ${PREFIX}/libexec/drush -name '*.orig' -exec rm {} + > - find ${PREFIX}/libexec/drush -name '.git' -type d -exec rm -rf {} + > + find ${PREFIX}/libexec/drush \ > > + -name '*.orig' -exec rm {} + -o \ > + -name '.git' -type d -prune -exec rm -rf {} + > > Exercise question: Why didn't I use -delete for *.orig here? -delete implies depth-first traversal which conflicts with what -prune should do.
- The great find(1) cleanup Christian Weisgerber
- Re: The great find(1) cleanup Klemens Nanni
- Re: The great find(1) cleanup Tim Kuijsten
- Re: The great find(1) cleanup Christian Weisgerber
- Re: The great find(1) cleanup Christian Weisgerber
- Re: The great find(1) cleanup Klemens Nanni
- Re: The great find(1) cleanup Rafael Sadowski
- Re: The great find(1) cleanup Marc Espie
- Re: The great find(1) cleanup f.holop