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

Re: FNG specify a count



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