Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: newbie rm --^file question
- X-seq: zsh-users 22275
- From: Gabor Maghera <gmaghera@xxxxxxxxx>
- To: "Hoji, Akihiko" <akh22@xxxxxxxx>, "zsh-users@xxxxxxx" <zsh-users@xxxxxxx>
- Subject: Re: newbie rm --^file question
- Date: Sun, 25 Dec 2016 20:45:39 +0000
- 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; bh=KT/nGb3iQfPBj2YZdXtQVxCmY+cmAHQn2qpkrnF/QLY=; b=lyacHmTsykFkYOBdangZvR/glcjlKjFaOvWQ12fCFmOcHz719lRPR9PRCGG6mEwDTL +hZUQp3OgrK6jhz3EvIEbA/K8nevLg1O+LDdk5IwzSZMUnOoos69xIoflY4r2WcGG3C+ kmfuS9AcdEsEYTkGmYSRmnrttIaiQjFkfuDmJlG3VLyhMIHjLJIfUYWJslHTlDWIgRP2 /f46l5he89svs+QsJ0k146leiLIUafxPm2tXzezz8NjDMoe919wWLNPkRCITdtn9yhZL C7lIjOr4t1aEF1ruXorRoJUeNbjTvd9WvP8seVVwHwVB6r7zEcICQyvXRUr3exX3d8QD m0tg==
- In-reply-to: <D6F66860-3528-4A5F-B5E0-7A25C1E6458E@pitt.edu>
- 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>
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