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. :-)
> 
> [EMAIL PROTECTED]:~$ mkdir tmp
> [EMAIL PROTECTED]:~$ cd tmp
> [EMAIL PROTECTED]:~/tmp$ for filename in `seq 1 50000`; do touch $filename;
> done
> *go and have lunch*
> [EMAIL PROTECTED]:~/tmp$ rm *
> bash: /bin/rm: Argument list too long
> [EMAIL PROTECTED]:~/tmp$ ls | xargs rm
> [EMAIL PROTECTED]:~/tmp$ ls
> [EMAIL PROTECTED]:~/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"
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to