Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: How to generate a list of numbers without 'seq'?
- X-seq: zsh-users 7195
- From: DervishD <raul@xxxxxxxxxxxx>
- To: Clint Adams <clint@xxxxxxx>
- Subject: Re: How to generate a list of numbers without 'seq'?
- Date: Fri, 19 Mar 2004 10:58:40 +0100
- Cc: Zsh Users <zsh-users@xxxxxxxxxx>
- In-reply-to: <20040318211223.GA1543@xxxxxxxxxxx>
- Mail-followup-to: Clint Adams <clint@xxxxxxx>, Zsh Users <zsh-users@xxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: Pleyades
- References: <20040318205201.GA1228@DervishD> <20040318211223.GA1543@xxxxxxxxxxx>
Hi Clint :)
* Clint Adams <clint@xxxxxxx> dixit:
> > print -l `seq 0 10`
> > entirely using Zsh. How can I replace the 'seq'???
> print -l {0..10}
This is more similar to the solution I was trying using <X-Y>,
which doesn't seem to work if it cannot be expanded :( But IIRC, I've
used <X-Y> syntax to generate list of numbers, but I don't remember
how, when, etc.
BTW I missed the {N1..N2} syntax under brace expansion O:)
Thanks a lot for your answer :)
Raúl Núñez de Arenas Coronado
--
Linux Registered User 88736
http://www.pleyades.net & http://raul.pleyades.net/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author