Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: rm -r



Claus Alboege <tractrix@xxxxxxxxxx> writes:

> Hi,
> 
> Could anyone tell me a way to make the following work from a z-shell:
> 
> rm -rf *.o (this dosn't work)
> 
> What I want is to remove all .o files recursive , but the "-r switch" in
> the above isn't a correct way to do it.
> 

find -type f -name "*.o" -exec rm -f {} \;

Or:

rm -f **/*.o with zsh's goodies, But you'll get a "blah.o: is a
directory" message if you have directories which names end with ".o"


-- 
fg

# rm *;o
o: command not found



Messages sorted by: Reverse Date, Date, Thread, Author