Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: rm -r
- X-seq: zsh-users 2790
- From: fg <francis@xxxxxxxxxxxxxxxx>
- To: Claus Alboege <tractrix@xxxxxxxxxx>
- Subject: Re: rm -r
- Date: 20 Dec 1999 17:28:20 +0100
- Cc: zsh-users@xxxxxxxxxxxxxx
- In-reply-to: Claus Alboege's message of "Mon, 20 Dec 1999 16:31:34 +0100"
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <385E4BD6.7835A11@xxxxxxxxxx>
- Sender: fg@xxxxxxxxxxxxxxxxxxxx
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