Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: 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