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.
> 
This occurred to me, but I figured, since I was in /var/log,
and I was careful to use the name "popuarlity", it couldn't
really hose anything important.
Just log files.

./t
-- 
http://tazmandevil.info
taz hungry


-- 
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/20131105141210.gb30...@myownsite.me

Reply via email to