Re: /bin/rm: Argument list too long.

2004-11-20 Thread Francisco Reyes
On Fri, 19 Nov 2004, Dennis Koegel wrote: find /foo/bar -type f -maxdepth 1 | xargs rm -n100 Although xargs is the most versatile solution for when having too many items listed, for just deleting find itself can do it.. find /foo/bar -n "" -delete ___ [E

Re: /bin/rm: Argument list too long.

2004-11-19 Thread Ruben de Groot
On Fri, Nov 19, 2004 at 10:19:39AM +0100, Dennis Koegel typed: > find /foo/bar -type f -maxdepth 1 | xargs rm -n100 or just ls | xargs rm ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, s

Re: /bin/rm: Argument list too long.

2004-11-19 Thread Brian Bobowski
Mipam wrote: Hi, I tried to delete all files from a dir, however I got this message: /bin/rm: Argument list too long. So, no go. newfs is also no option, because the dir is not a seperate fs. Any hints exept for manual labour? Bye, Mipam. I gather it's rm * that's not working? If

Re: /bin/rm: Argument list too long.

2004-11-19 Thread Dennis Koegel
On Fri, Nov 19, 2004 at 09:58:40AM +0100, Mipam wrote: > I tried to delete all files from a dir, however I got this message: > /bin/rm: Argument list too long. You probably did "rm *", and * expanded to too many files. One way is to simply remove the directory completely (rm -

/bin/rm: Argument list too long.

2004-11-19 Thread Mipam
Hi, I tried to delete all files from a dir, however I got this message: /bin/rm: Argument list too long. So, no go. newfs is also no option, because the dir is not a seperate fs. Any hints exept for manual labour? Bye, Mipam. ___ [EMAIL PROTECTED