Re: No space left on device (28) but device is NOT full!
On Tue, Nov 05, 2013 at 03:13:10PM +0400, Reco wrote:
> 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
Learning perl has been on my todo list for about 8 years now...
./t
--
http://tazmandevil.info
taz hungry
Reply to: