You can use xargs to construct a list of files for rm to delete.   This
should work:
find ./ -name '*.class' -print | xargs rm


On Mon, 14 Sep 1998, David Warnock wrote:

> Hi,
> 
> I am using Jikes 0.37 and whilst I trust it's -depends option I like to
> delete all class files prior to building a release. I am also very new
> to Linux and cannot see how to delete *.class files from a directory
> tree. Under windows NT I could use "del *.class /s" but "rm -r *.class"
> does not work.
> 
> I thought I should be able to connect "find . -name *.class" to "rm"
> somehow using redirection or pipes but cannot get it to work.
> 
> Any ideas on how I should do this?
> 
> Thanks
> 
> Dave
> 

Robert Dietrick
Software Engineer
Magnet Interactive Communications

Reply via email to