Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
RE: repeat count?
- X-seq: zsh-users 28639
- From: zeurkous@xxxxxxxxxxxxxxx
- To: dominik.vogt@xxxxxx, Zsh Users <zsh-users@xxxxxxx>
- Subject: RE: repeat count?
- Date: Mon, 16 Jan 2023 18:26:17 +0000 (UTC)
- Archived-at: <https://zsh.org/users/28639>
- In-reply-to: <Y8WR4X/amuVc25nF@localhost>
- List-id: <zsh-users.zsh.org>
- References: <Y8WR4X/amuVc25nF@localhost>
On Mon, 16 Jan 2023 19:05:21 +0100, Dominik Vogt <dominik.vogt@xxxxxx> wrote:
> Is it possible to get the pass number of a repeat loop from within
> the loop, or is it necessary to use a hand written counter?
>
> repeat 10; do
> echo "pass number ???"
> done
>
Dunno, but one alternative is--
for a in {0..9}; do
echo "pass number ${a}";
done;
> Ciao
>
> Dominik ^_^ ^_^
HTH,
--zeurkous.
>
> =2D-
>
> Dominik Vogt
>
--
Friggin' Machines!
Messages sorted by:
Reverse Date,
Date,
Thread,
Author