From: Andre Pang <andrep-ml@vjolnir.org>
To: fg <francis@mandrakesoft.com>
Cc: Claus Alboege <tractrix@kom.auc.dk>, zsh-users@sunsite.auc.dk
Subject: Re: rm -r
Date: Wed, 22 Dec 1999 01:31:28 +1100 [thread overview]
Message-ID: <19991222013128.B2262@bozar.ihug.com.au> (raw)
In-Reply-To: <m27li91srf.fsf@toy.mandrakesoft.com>; from francis@mandrakesoft.com on Mon, Dec 20, 1999 at 05:28:20PM +0100
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@vjolnir.org> - Purruna Pty Ltd - ph# 0411.882299 :
: #ozone - http://www.vjolnir.org/ozone/ :
next prev parent reply other threads:[~1999-12-21 14:27 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-12-20 15:31 Claus Alboege
1999-12-20 15:41 ` Vincent Lefevre
1999-12-20 15:43 ` Clint Adams
1999-12-20 16:13 ` Pascal Byrne
1999-12-20 16:28 ` fg
1999-12-21 14:31 ` Andre Pang [this message]
1999-12-21 18:52 ` fg
1999-12-22 3:51 ` Andre Pang
1999-12-22 9:58 ` Thomas Köhler
1999-12-22 13:12 ` Alexandre Duret-Lutz
1999-12-22 13:24 ` Thomas Köhler
1999-12-23 0:15 ` Geoff Wing
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=19991222013128.B2262@bozar.ihug.com.au \
--to=andrep-ml@vjolnir.org \
--cc=andrep@vjolnir.org \
--cc=francis@mandrakesoft.com \
--cc=tractrix@kom.auc.dk \
--cc=zsh-users@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).