This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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 <jik@curl.com>
>To: efficacy@my-deja.com
>CC: cygwin@cygwin.com
>Subject: Re: rm -r not working
>
>>  Date: Tue, 20 Mar 2001 09:42:15 -0800
>>  From: "Primitive Guy" <efficacy@my-deja.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 {} \;




------------------------------------------------------------
--== Sent via Deja.com ==--
http://www.deja.com/



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]