Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: newbie rm --^file question
- X-seq: zsh-users 22276
- From: "Hoji, Akihiko" <akh22@xxxxxxxx>
- To: Gabor Maghera <gmaghera@xxxxxxxxx>
- Subject: Re: newbie rm --^file question
- Date: Sun, 25 Dec 2016 20:49:19 +0000
- Accept-language: en-US
- Authentication-results: spf=none (sender IP is ) smtp.mailfrom=akh22@xxxxxxxx;
- Cc: "zsh-users@xxxxxxx" <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pitt.onmicrosoft.com; s=selector1-pitt-edu; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=eT12onoXOLEWmgglneyoktj9KB54nGgo9+sTNR01l4Y=; b=czpsNjUHtbuEE6zt0hmHfJPFThHd8/s82L1vCLlqKvFeqDSqvkRy/mgWkSgYR8hSPJDP/G5hhfqOWLt9zeuEOSXWVw5dgfSWqLBfomoHJm+cZulkif44o0R535Zx8eXUiG8DVblHsdWHAZBesrmOmMbpDfjaXlHOzUl2OQZBGPE=
- In-reply-to: <CAOzw3LYNWwxuDgkJJM99PTRvZPjcVMLBUrq8dL4S5kvkVdJ1rg@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <D6F66860-3528-4A5F-B5E0-7A25C1E6458E@pitt.edu> <CAOzw3LYNWwxuDgkJJM99PTRvZPjcVMLBUrq8dL4S5kvkVdJ1rg@mail.gmail.com>
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
- Thread-index: AQHSXuQ1ZVLwBy4ah0+ebwFXKgf5jKEZIeuAgAABBQA=
- Thread-topic: newbie rm --^file question
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@xxxxxxxxx> 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@xxxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author