Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: Tue, 20 Mar 2001 10:54:00 -0800 Message-Id: <200103201854.KAA32767@mail16.bigmailbox.com> Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: binary X-Mailer: MIME-tools 4.104 (Entity 4.116) Mime-Version: 1.0 X-Originating-Ip: [209.3.82.44] From: "Primitive Guy" To: efficacy AT my-deja DOT com, jik AT curl DOT com Cc: cygwin AT cygwin DOT com Subject: Re: rm -r not working find . -name *.class -exec rm {} \; did the trick. also http://www.faq.org = very useful. >Date: 20 Mar 2001 13:24:09 -0500 >From: Jonathan Kamens >To: efficacy AT my-deja DOT com >CC: cygwin AT cygwin DOT com >Subject: Re: rm -r not working > >> Date: Tue, 20 Mar 2001 09:42:15 -0800 >> From: "Primitive Guy" >> >> 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 >. > >The summary is that you want to use: > > find /dev/classes -name '*.class' -exec rm {} \; ------------------------------------------------------------ --== Sent via Deja.com ==-- http://www.deja.com/ -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple