delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
Subject: | rm * , ls * : Invalid argument |
To: | cygwin AT cygwin DOT com |
X-Mailer: | Lotus Notes Release 6.5.3 September 14, 2004 |
Message-ID: | <OF564D48E2.A1214BA3-ON862571D4.0066CF6B-862571D4.0068AC64@supervalu.com> |
From: | "Rohan X. Rege" <Rohan DOT X DOT Rege AT supervalu DOT com> |
Date: | Thu, 24 Aug 2006 14:03:18 -0500 |
MIME-Version: | 1.0 |
X-imss-version: | 2.042 |
X-imss-result: | Passed |
X-imss-scores: | Clean:96.79805 C:2 M:4 S:5 R:5 |
X-imss-settings: | Baseline:2 C:1 M:1 S:1 R:1 (0.1500 0.1500) |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Hi, I'm a newbie and am using bash 2.05 on Windows server 2003 . I'm running into problems removing directory contents with a wildcard. This particular directory has over 7000 files in it. When I issue the following commands, I get a Invalid argument error: $ rm * bash: /usr/bin/ls: Invalid argument I get the same error when I use ls $ ls * bash: /usr/bin/ls: Invalid argument Some research on the cygwin mail archives revealed that this is because of the 32KB length limit on the command line which is imposed on us by the underlying "OS" . I tried to find whether there were any posts explaining how one gets around this problem, but couldnt find any. Is there any way around to do what I want , i.e remove a large number of log files using the rm command with the wildcard * argument. Please let me know. Thanks and Regards, Rohan Rege -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |