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

Re: rm -r



On Mon, Dec 20, 1999 at 16:31:34 +0100, Claus Alboege wrote:
> 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.

rm -f **/*.o

or with *** instead of ** to follow the links.

See man zshexpn...

-- 
Vincent Lefèvre <vincent@xxxxxxxxxx> - PhD student in Computer Science
Web: <http://www.vinc17.org/> or <http://www.ens-lyon.fr/~vlefevre/> - 100%
validated HTML - Acorn Risc PC, Yellow Pig 17, Championnat International
des Jeux Mathématiques et Logiques, TETRHEX, etc.



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