Hi.

On Tue, Nov 05, 2013 at 09:41:58AM +0000, Jonathan Dowland wrote:
> On Tue, Nov 05, 2013 at 05:28:16AM +0100, Tazman Deville wrote:
> > find . -name 'popularity-*' | xargs rm -rf
> 
> Sorry, opportunity for a bit of golf. Find has a built-in for deleting
> files:
> 
> > find . -type f -name 'popularity-*' -delete
> 
> I'd also be rather wary of invoking rm -rf with the results of find
> output.

If you're unsure (and you should!) if filenames contain spaces, that
should more appopriate.

find . -type f -name 'popularity-*' -print0 | xargs -0rn 20 rm -f


Arguably the fastest way to delete all this mess should be

perl -e 'for(<popularity-*>){((stat)[9]<(unlink))}'


Reco


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20131105111310.GA11995@x101h

Reply via email to