Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: rm -r
- X-seq: zsh-users 2791
- From: Andre Pang <andrep-ml@xxxxxxxxxxx>
- To: fg <francis@xxxxxxxxxxxxxxxx>
- Subject: Re: rm -r
- Date: Wed, 22 Dec 1999 01:31:28 +1100
- Cc: Claus Alboege <tractrix@xxxxxxxxxx>, zsh-users@xxxxxxxxxxxxxx
- In-reply-to: <m27li91srf.fsf@xxxxxxxxxxxxxxxxxxxx>; from francis@xxxxxxxxxxxxxxxx on Mon, Dec 20, 1999 at 05:28:20PM +0100
- Mail-followup-to: fg <francis@xxxxxxxxxxxxxxxx>, Claus Alboege <tractrix@xxxxxxxxxx>, zsh-users@xxxxxxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <385E4BD6.7835A11@xxxxxxxxxx> <m27li91srf.fsf@xxxxxxxxxxxxxxxxxxxx>
- Reply-to: Andre Pang <andrep@xxxxxxxxxxx>
- Sender: andrep@xxxxxxxxxxx
On Mon, Dec 20, 1999 at 05:28:20PM +0100, fg wrote:
> > 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"
rm -f **/*.o(^/) will work if you've doing 'setopt EXTENDED_GLOB', too.
(That'll remove all files which end in .o recursively, and exclude all *.o
files which are directories).
--
: Andre Pang <andrep@xxxxxxxxxxx> - Purruna Pty Ltd - ph# 0411.882299 :
: #ozone - http://www.vjolnir.org/ozone/ :
Messages sorted by:
Reverse Date,
Date,
Thread,
Author