Too many files for: rm *.txt ??

Michael A. Chase mchase@ix.netcom.com
Mon May 28 12:03:00 GMT 2001


The file wildcard expression is expanded by the shell before rm is called
and overflows the command line buffer.  Select fewer files or clean up more
often.

A for loop over the alphabet (numbers and upper and lower case) followed by
a final *.txt to catch the remainder should help you clean up your current
backlog.

--
Mac :})
Give a hobbit a fish and he'll eat fish for a day.
Give a hobbit a ring and he'll eat fish for an age.
----- Original Message -----
From: "Axel Kowald" <axel@itb.biologie.hu-berlin.de>
To: <cygwin@cygwin.com>
Sent: Monday, May 28, 2001 03:28
Subject: Too many files for: rm *.txt ??


> I'm using tcsh (6.10) under cygwin 1.1.8 and everything runs nicely.
> However, when I try to delete >5500 files using rm *.txt I get
> "/usr/bin/rm: Invalid argument". It seems that the shell or rm can't
> handle so many files.
>
> Is this a known problem and what can I do about it ?



--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list