This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Too many files for: rm *.txt ??
- To: "Axel Kowald" <axel at itb dot biologie dot hu-berlin dot de>, <cygwin at cygwin dot com>
- Subject: Re: Too many files for: rm *.txt ??
- From: "Michael A. Chase" <mchase at ix dot netcom dot com>
- Date: Mon, 28 May 2001 11:52:14 -0700
- References: <3B122854.43A5EBA8@itb.biologie.hu-berlin.de>
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