zsh-users
 help / color / mirror / code / Atom feed
From: Gabor Maghera <gmaghera@gmail.com>
To: "Hoji, Akihiko" <akh22@pitt.edu>,
	"zsh-users@zsh.org" <zsh-users@zsh.org>
Subject: Re: newbie rm --^file question
Date: Sun, 25 Dec 2016 20:45:39 +0000	[thread overview]
Message-ID: <CAOzw3LYNWwxuDgkJJM99PTRvZPjcVMLBUrq8dL4S5kvkVdJ1rg@mail.gmail.com> (raw)
In-Reply-To: <D6F66860-3528-4A5F-B5E0-7A25C1E6458E@pitt.edu>

[-- Attachment #1: Type: text/plain, Size: 716 bytes --]

Not sure if it's some nuance with different versions of zsh we're running,
but I needed to "setopt exended_glob" (with the underscore).  But I think
the main issue here is the globbing syntax.

Have a look at a working example here: https://asciinema.org/a/97273

Merry Christmas,
Gabor



On Sun, Dec 25, 2016 at 11:22 AM Hoji, Akihiko <akh22@pitt.edu> wrote:

> Hi,
>
>
> I am trying to delete all the files except a few files having the same
> file extension.  I did the following;
>
> setopt extended glob
> rm -rf —^file.ext.*
>
> This gives an error message, “zsh, no matches found:”
>
> I would appreciate a poster as to what I am doing wrong.
>
> Thanks in advance.
>
> AH

  reply	other threads:[~2016-12-25 20:45 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-25 19:22 Hoji, Akihiko
2016-12-25 20:45 ` Gabor Maghera [this message]
2016-12-25 20:49   ` Hoji, Akihiko
2016-12-25 20:51     ` Gabor Maghera
2016-12-25 21:10 ` Bart Schaefer
2016-12-25 21:49   ` Akihiko Hohji
2016-12-25 22:47     ` Gabor Maghera
2016-12-25 23:02       ` Akihiko Hohji
2016-12-27 20:23         ` Roman Neuhauser

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=CAOzw3LYNWwxuDgkJJM99PTRvZPjcVMLBUrq8dL4S5kvkVdJ1rg@mail.gmail.com \
    --to=gmaghera@gmail.com \
    --cc=akh22@pitt.edu \
    --cc=zsh-users@zsh.org \
    /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).