Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: FNG specify a count
- X-seq: zsh-users 17080
- From: Jérémie Roquet <arkanosis@xxxxxxxxx>
- To: zzapper <david@xxxxxxxxxx>
- Subject: Re: FNG specify a count
- Date: Mon, 14 May 2012 18:10:52 +0200
- Cc: zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=/4TctGdhQ/tNR94iEbhonSyhlh3hoY9XzseOmhxBSLs=; b=HezcaG34tzlN2zz17r2SUjVwmgjkLw9w/sKvquIrl7Q5e5aPvnPTOVGyCyIBzVPUT7 XbbWLX3sSt82erdm+w+TBi0f2X8wFg6AfkUeI+QwZvjOSZwJnPfmxpyQHrNgobp8zyQC Y91tts/vf0EGZO+dnAPaBznQ+wu4uLZaeflZu/ohPAMDToAFjmhfHW0pCrA/VmgSTmJI 2TqVOvJfKW50zgiC+XcqQkHc/VbKAqrQmICtOmsjgs2D80VYVdVaS9/o/dwE/pW3PDp7 mDDgqk0Nc7Dob+mPz0yIyTRkngf2FcMAUK/gvkIZi8peKOLc6X5Asob6o222qmhxLltb 4fnw==
- In-reply-to: <XnsA053ABE40FE6zzappergmailcom@80.91.229.10>
- 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: <XnsA053ABE40FE6zzappergmailcom@80.91.229.10>
Hi,
2012/5/14 zzapper <david@xxxxxxxxxx>:
> This is a PHP regexp /^FLOW_([0-9]{3}).csv$/
>
> I can simulate this in a brute fashion
>
>> ls FLOW_[0-9][0-9][0-9].csv
>
> Is it possible to use a count 3 in ZSH FNG?
With extended globbing enabled, use FLOW_[0-9](#c3).csv
If you want between M and N numbers, use FLOW_[0-9](#cM,N).csv
If you want more than M numbers, use FLOW_[0-9](#cM,).csv
If you want less than N numbers, use FLOW_[0-9](#c,N).csv
# is the same as (#c0,)
## is the same as (#c1,)
Best regards,
--
Jérémie
Messages sorted by:
Reverse Date,
Date,
Thread,
Author