Tugger the SLUGger!SLUG Mailing List Archives

Re: [SLUG] Flooded mail queue

Peter Hardy wrote:
> On Tue, 2004-06-29 at 12:03, Terry Collins wrote:
> > Peter Hardy wrote:
> >
> > > cd /var/spool/mqueue; ls | xargs rm
> >
> > Doesn't it barf on the ls with the same message?
> You had me worried for a minute. :-)
> peter@picasso:~$ mkdir tmp
> peter@picasso:~$ cd tmp
> peter@picasso:~/tmp$ for filename in `seq 1 50000`; do touch $filename;
> done
> *go and have lunch*
> peter@picasso:~/tmp$ rm *
> bash: /bin/rm: Argument list too long
> peter@picasso:~/tmp$ ls | xargs rm
> peter@picasso:~/tmp$ ls
> peter@picasso:~/tmp$

Okay, you are correct
Hmm, guess who has never used just ls {:-)


> And just to add to the obscure ls arguments thread, I just discovered
> -1, to output one filename per line. I've never needed this, as GNU ls
> seems to default to that when it's outputting to a pipe.

Not debian woody {:-)
It just dumps with a couple of spaces between each filename.

   Terry Collins {:-)}}} email: terryc at woa.com.au  www:
   Wombat Outdoor Adventures <Bicycles, Computers, GIS, Printing,

 "People without trees are like fish without clean water"