From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18187 invoked by alias); 23 Nov 2010 15:29:17 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 28437 Received: (qmail 21837 invoked from network); 23 Nov 2010 15:29:05 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, T_TO_NO_BRKTS_FREEMAIL autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.215.43 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:reply-to:to:subject:date :user-agent:references:in-reply-to:mime-version:content-type :content-transfer-encoding:message-id; bh=LrwqNPwjsYnLNBq1+qm+osTSmm5M8PdRC/udedNL08U=; b=d9xsL6iHzw5AUKdRMY2g4ZaY1QPGuExnEWLe3Xiq61CSpQu9ja37etOwSrPZAGte4o oIgFGdBr1pWWU9PGE/DtfwOVukPy8iGuwIGO6zNjp7o4E6nthNFpHgJwIELO/37+Tyzy YsPzyo+peEkxu7bG+wyhJI5PllnWE6e0brh80= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:reply-to:to:subject:date:user-agent:references:in-reply-to :mime-version:content-type:content-transfer-encoding:message-id; b=USOqCJ/u8yZ5Nx5GuXPmBO0YktbOb70G/Sl6sZBVB8e0EHJtZfTCEwmLrI+47vFruq t8+UVj7wjDcauhBseUl3K9iIIs1fr3nTT8Wi+khvQKCNWbItflcZI+JtJb+AYRdL1qnq flPsN0WaabsR7h/dYvfFnSyt/w45B3GrLvWIE= From: ZyX Reply-To: zyx.vim@gmail.com To: zsh-workers@zsh.org Subject: Re: Glob for specific length? Date: Tue, 23 Nov 2010 18:28:57 +0300 User-Agent: KMail/1.13.5 (Linux/2.6.34-zen1; KDE/4.4.5; x86_64; ; ) References: <87y68k4fm0.fsf@ft.bewatermyfriend.org> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2051421.SM66GOF1E5"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201011231828.57512@-zyx> --nextPart2051421.SM66GOF1E5 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Reply to message =ABRe: Glob for specific length?=BB,=20 sent 18:11:46 23 November 2010, Tuesday by Aaron Davies: Maybe you should try setopt extendedglob && ls -lad /?(#c3) instead. Original message: > I can't get this to work. It's new in 4.3.5, right, so it should be in > 4.3.9? >=20 > 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". >=20 > 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}$/ > >=20 > > Yes. See zshexpn(1) for (#cN,M). > >=20 > > Example: > >=20 > > % 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 > >=20 > > Regards, Frank > >=20 > > -- > > In protocol design, perfection has been reached not when there is > > nothing left to add, but when there is nothing left to take away. > >=20 > > -- RFC 1925 --nextPart2051421.SM66GOF1E5 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) iEYEABECAAYFAkzr3bkACgkQkOgHluiXxU8IHgCdECIk9PRi0EqCW8ibgQTSNuqR mQwAnja3bEqB510E9sa+/zkL167yyj6d =mEwc -----END PGP SIGNATURE----- --nextPart2051421.SM66GOF1E5--