delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
From: | "Dave Korn" <dave DOT korn AT artimi DOT com> |
To: | <cygwin AT cygwin DOT com> |
Subject: | RE: rm * , ls * : Invalid argument |
Date: | Thu, 24 Aug 2006 20:43:45 +0100 |
Message-ID: | <004b01c6c7b5$9c68ce00$a501a8c0@CAM.ARTIMI.COM> |
MIME-Version: | 1.0 |
X-Mailer: | Microsoft Office Outlook 11 |
In-Reply-To: | <OF564D48E2.A1214BA3-ON862571D4.0066CF6B-862571D4.0068AC64@supervalu.com> |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
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 |
On 24 August 2006 20:03, Rohan X. Rege wrote: > 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 LOL, I rather think not! Cut'n'paste error? > 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. "find . -maxdepth 1 -type f -print0 | xargs -0 rm" cheers, DaveK -- Can't think of a witty .sigline today.... -- 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 |