Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: rm -r
- X-seq: zsh-users 2795
- From: Andre Pang <andrep-ml@xxxxxxxxxxx>
- To: fg <francis@xxxxxxxxxxxxxxxx>
- Subject: Re: rm -r
- Date: Wed, 22 Dec 1999 14:51:09 +1100
- Cc: Claus Alboege <tractrix@xxxxxxxxxx>, zsh-users@xxxxxxxxxxxxxx
- In-reply-to: <m2vh5s5doy.fsf@xxxxxxxxxxxxxxxxxxxx>; from francis@xxxxxxxxxxxxxxxx on Tue, Dec 21, 1999 at 07:52:29PM +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> <19991222013128.B2262@xxxxxxxxxxxxxxxxx> <m2vh5s5doy.fsf@xxxxxxxxxxxxxxxxxxxx>
- Reply-to: Andre Pang <andrep@xxxxxxxxxxx>
- Sender: andrep@xxxxxxxxxxx
On Tue, Dec 21, 1999 at 07:52:29PM +0100, fg wrote:
> > 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).
>
> Gee, this makes me look at "find" like an easy-to-use program ;)
[advocacy] Actually, the only reason I don't know how to use find is
because of zsh. Since it's my shell wherever I'm at, I tend to type stuff
like that in all the time :). Once you've learnt the basic globbing stuff
(?, *, [], {}), the extended glob options are brilliant.. *(@) and a few
others in particular are so useful! If you don't know them yet, I'd highly
advise learning them.
--
: Andre Pang <andrep@xxxxxxxxxxx> - Purruna Pty Ltd - ph# 0411.882299 :
: #ozone - http://www.vjolnir.org/ozone/ :
Messages sorted by:
Reverse Date,
Date,
Thread,
Author