- To: slug@xxxxxxxxxxx
- Subject: Re: [SLUG] Flooded mail queue
- From: Terry Collins <terryc@xxxxxxxxxx>
- Date: Tue, 29 Jun 2004 14:29:12 +1000
- Organization: WOA Computer Services
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 {:-)
...snip.....
> 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:
http://www.woa.com.au
Wombat Outdoor Adventures <Bicycles, Computers, GIS, Printing,
Publishing>
"People without trees are like fish without clean water"