/bin/rm lots of files

Rolf Campbell Endlisnis@mailc.net
Mon May 3 22:14:00 GMT 2004


I suspect this is a command-line too long problem, but I can't say for 
sure since you didn't really provide any details.  If I'm correct, then 
you cannot change the limit easily.  You should either delete the files 
in smaller lists, or if you are trying to delete all files in a 
directory you can do:
rm -r path/to/files

or

find path/to/files | xargs rm

or something like that.

Lester Ingber wrote:
> I couldn't find what I thought I recalled as a similar posting.
> In my Makefile I have a command to remove a directory of files.
> I get a complaint that there are too many files to remove (about 1000).
> How do I change the default for increasing the number of listed/open files?
> 
> Thanks.
> 
> Lester


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list