Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Glob for specific length?
- X-seq: zsh-users 15571
- From: Aaron Davies <aaron.davies@xxxxxxxxx>
- To: Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx>
- Subject: Re: Glob for specific length?
- Date: Tue, 23 Nov 2010 10:11:46 -0500
- Cc: "zsh-users@xxxxxxx" <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=/0sfAh2nw8iI8C59MsIxh7YMdf0M2kBsRSigne9omA4=; b=q2WEtYRuhvYFbT4gdb0Qy/7++KPO82zAtsH7dAjL5+RRmODCVyEkhf9dGu0kEzHb+4 sRC5UZ3RAVd9njCcdQrmyNA/uxN0Y8RFMauPmPGfEANATWQ5na0m3QnTK70e7dtV7/3r lkqM7IHyU49o1jjAEOnqLXFCYEmrd/QKgOb6Q=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=niHNGoNf2SoudpJUCkvvcvFyAXgsLG9HKDXF1VdceDRAKOWEZnobupnVNk09B+ktPc u3zmW6q3Y5qIUnSpyOs5+5LoDlmkw1fcOpDQsDdh8/Dmxx2TPR0j+FFVyZqkQgsGqfkm 1LYIace4clpx5XNL9UlZ+KLN5EYUEjiEjkC04=
- In-reply-to: <87y68k4fm0.fsf@xxxxxxxxxxxxxxxxxxxxxx>
- 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: <AANLkTimJyakhexAuikdK2hx7TNqAue3HFUJ22j3WB9PL@xxxxxxxxxxxxxx> <87y68k4fm0.fsf@xxxxxxxxxxxxxxxxxxxxxx>
I can't get this to work. It's new in 4.3.5, right, so it should be in 4.3.9?
I don't understand the commandline you gave (is there a paste error in
it?) and when I try it, I get "zsh: unknown file attribute".
On Tuesday, November 23, 2010, Frank Terbeck wrote:
> Aaron Davies wrote:
>> Is there a glob for files with names of e.g. exactly thirty
>> characters? sort of the equiv of /^.{30}$/
>
> Yes. See zshexpn(1) for (#cN,M).
>
> Example:
>
> % ls -lad ls -lad /?(#c3)
> drwxr-xr-x 2 root root 4096 Nov 2 23:31 /bin
> drwxr-xr-x 15 root root 3460 Nov 22 23:12 /dev
> drwxr-xr-x 161 root root 12288 Nov 22 14:20 /etc
> drwxr-xr-x 14 root root 12288 Oct 22 09:43 /lib
> drwxrwxr-x 8 root staff 4096 Nov 13 22:26 /mnt
> drwxr-xr-x 4 root root 4096 Oct 4 11:05 /opt
> drwxr-xr-x 4 root root 4096 Apr 29 2010 /srv
> drwxr-xr-x 12 root root 0 Oct 22 09:50 /sys
> drwxrwxrwt 22 root root 12288 Nov 23 09:15 /tmp
> drwxr-xr-x 15 root root 4096 Oct 3 12:31 /usr
> drwxr-xr-x 16 root root 4096 Jul 1 19:41 /var
>
> Regards, Frank
>
> --
> In protocol design, perfection has been reached not when there is
> nothing left to add, but when there is nothing left to take away.
> -- RFC 1925
>
--
Aaron Davies
aaron.davies@xxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author