zsh-users
 help / color / mirror / code / Atom feed
From: Gabor Maghera <gmaghera@gmail.com>
To: "Hoji, Akihiko" <akh22@pitt.edu>
Cc: "zsh-users@zsh.org" <zsh-users@zsh.org>
Subject: Re: newbie rm --^file question
Date: Sun, 25 Dec 2016 20:51:30 +0000	[thread overview]
Message-ID: <CAOzw3LYzie7RM+rQOnxwzUXw1MuJtx=U8qQvqFGMDufD=PNCbw@mail.gmail.com> (raw)
In-Reply-To: <C13A6795-50F4-4A92-B3DC-E72CE42A3F2F@pitt.edu>

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

Perfect!  Your environment is identical to mine (as far as zsh an macOS
versions go).  The command in the example should work for you as well,
unless I misunderstood the question.

❯ uname -a
Darwin FOLSML-R5TYG8W 16.3.0 Darwin Kernel Version 16.3.0: Thu Nov 17
20:23:58 PST 2016; root:xnu-3789.31.2~1/RELEASE_X86_64 x86_64

~
❯ zsh --version
zsh 5.3.1 (x86_64-apple-darwin16.3.0)

--
Gabor

On Sun, Dec 25, 2016 at 12:49 PM Hoji, Akihiko <akh22@pitt.edu> wrote:

> I forgot to mention this.  I am using zsh 5.3.1
> (x86_64-apple-darwin16.3.0) and OS X 10.12.2
>
>
> AH
>
>
> > On Dec 25, 2016, at 3:45 PM, Gabor Maghera <gmaghera@gmail.com> wrote:
> >
> > 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:51 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
2016-12-25 20:49   ` Hoji, Akihiko
2016-12-25 20:51     ` Gabor Maghera [this message]
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='CAOzw3LYzie7RM+rQOnxwzUXw1MuJtx=U8qQvqFGMDufD=PNCbw@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).