delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/03/20/14:01:09

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: 20 Mar 2001 13:24:09 -0500
Message-ID: <20010320182409.31781.qmail@lizard.curl.com>
From: Jonathan Kamens <jik AT curl DOT com>
To: efficacy AT my-deja DOT com
CC: cygwin AT cygwin DOT com
In-reply-to: <200103201742.JAA00506@mail19.bigmailbox.com>
(efficacy AT my-deja DOT com)
Subject: Re: rm -r not working
References: <200103201742 DOT JAA00506 AT mail19 DOT bigmailbox DOT com>

>  Date: Tue, 20 Mar 2001 09:42:15 -0800
>  From: "Primitive Guy" <efficacy AT my-deja DOT com>
>  
>  I want to remove all my .class files in all sub-directories
>  starting from /dev/classes.
>  
>  classes $ rm -r *.class
>  rm: cannot remove `*.class': No such file or directory
>  
>  There are no .class files in /dev/classes but there are certainly
>  .class files in sub-directories of /dev/classes.
>  
>  what am I doing wrong?

Not understanding how wildcards work in Unix-like shells?  The Cygwin
bash shell works like Unix, not like DOS.

See questions 2.3 and 2.6 in
<URL:http://www.faqs.org/faqs/unix-faq/faq/part2/index.html>.

The summary is that you want to use:

        find /dev/classes -name '*.class' -exec rm {} \;

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019