From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22735 invoked by alias); 25 Dec 2016 20:51:46 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 22277 Received: (qmail 9024 invoked from network); 25 Dec 2016 20:51:46 -0000 X-Qmail-Scanner-Diagnostics: from mail-ua0-f170.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.217.170):SA:0(-0.0/5.0):. Processed in 0.737364 secs); 25 Dec 2016 20:51:46 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_PASS, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: gmaghera@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.217.170 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=tJyn3UYF5tzhDuZP5+P1LsRAAEWbsBP1KD1zpNP97Fs=; b=ByaWfpblDrjt6mEVl3H88msB0+xsdXaQO+DeDNAm/988LB6+5pwu5sEcCcmNmVDIFo uqUG0nQwFwetrYbdm8mdY0vLcqr0WSE7SvjjS9jJK+3R4I2228zNp5bP9HQ2Hkl+3W/6 c7QDe+gmKhM2/yF2LzC4YgeZe7BLiBHYIom8vikt8KYsQlHqAVxBNndR5O/aXYDJ6Se0 fUkKAQHGc0VSXwZdgqAihekSfML1hANAUMcDXqlaYJKlonZ5CmUI3u407T/1FVJEyzyj +47IQxlnDk5rNKKrKBcA9DZLs63hHCuXjv56TodOfK2M8WZDjZWOCbnPPNFJb8u+w6NO 8jJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=tJyn3UYF5tzhDuZP5+P1LsRAAEWbsBP1KD1zpNP97Fs=; b=SypRJwLNw1n++Ck6tiuHju+0nYBN+aRdaQt3HKeHyjMiJV/IdNWUTwn9vJoD1bBUjM Wc63u3VPSiUrUQ117Fa0qVjggxbRHMGRm7uxYUoO3ZYZ/Ny5hH5i/dFRUbbVi9hTDQ9o 0KzsjUoTPJxrVld9CUoEcYdf29LLXzfELQKODnvmvnE/6r7mPHu6GQBHq0I5k77SFh3B l90KjFdxw7oGwrqKxNK+ZAlX11ZVaLY2n7ZP1zOCGVIlQYQajgb3YJZXGf7vA0wbs0EA V+zvfKc4oR+PUAr+TOoAWwAhMXnoDv1MXZjGWIU1Ow67muYwulirPV3No2BssWnG5Rgo GrNQ== X-Gm-Message-State: AIkVDXIV6i5udXJHpHqNvwWZbw9cFePqFu61yNjNxohfZ8UmUg21JbDdVgTG05+2G4rLwvvOY4Vm2UpaASJPZw== X-Received: by 10.176.86.93 with SMTP id z29mr15136314uaa.126.1482699101344; Sun, 25 Dec 2016 12:51:41 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Gabor Maghera Date: Sun, 25 Dec 2016 20:51:30 +0000 Message-ID: Subject: Re: newbie rm --^file question To: "Hoji, Akihiko" Cc: "zsh-users@zsh.org" Content-Type: multipart/alternative; boundary=f403045dd5563e99d9054481c97b --f403045dd5563e99d9054481c97b Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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. =E2=9D=AF 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 ~ =E2=9D=AF zsh --version zsh 5.3.1 (x86_64-apple-darwin16.3.0) -- Gabor On Sun, Dec 25, 2016 at 12:49 PM Hoji, Akihiko 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 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 thi= nk > > 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 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 =E2=80=94^file.ext.* > >> > >> This gives an error message, =E2=80=9Czsh, no matches found:=E2=80=9D > >> > >> I would appreciate a poster as to what I am doing wrong. > >> > >> Thanks in advance. > >> > >> AH > > --f403045dd5563e99d9054481c97b--