> if I try this > find . -name *.java|xargs rm -rf > it works. You should quote '*.java' in the find command. If you don't then, when you'll have a file foo.java with java extension in current folder then:
find . -name *.java will get expanded by shell to: find . -name foo.java which won't do what you'll expect. Meanwhile, find . -name '*.java' will make sure that everything works as intended at all times. Einar.