This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: rm -r not working
- To: "Primitive Guy" <efficacy at my-deja dot com>, cygwin at cygwin dot com
- Subject: Re: rm -r not working
- From: "Larry Hall (RFK Partners, Inc)" <lhall at rfk dot com>
- Date: Tue, 20 Mar 2001 13:13:21 -0500
At 12:42 PM 3/20/2001, Primitive Guy wrote:
>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?
rm --help
Usage: rm [OPTION]... FILE...
Remove (unlink) the FILE(s).
-d, --directory unlink directory, even if non-empty (super-user only)
-f, --force ignore nonexistent files, never prompt
-i, --interactive prompt before any removal
-r, -R, --recursive remove the contents of directories recursively
-v, --verbose explain what is being done
--help display this help and exit
--version output version information and exit
The -r flag to rm removes the contents of the specified directory and the
directory itself. It doesn't search out the file spec you specify and remove
those recursively. You can use find to do that (in conjunction with rm)
though.
Larry Hall lhall@rfk.com
RFK Partners, Inc. http://www.rfk.com
118 Washington Street (508) 893-9779 - RFK Office
Holliston, MA 01746 (508) 893-9889 - FAX
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple