help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: case statement with non-consecutive numbers


From: Dennis Williamson
Subject: Re: case statement with non-consecutive numbers
Date: Thu, 15 Apr 2021 16:33:28 -0500

On Thu, Apr 15, 2021, 4:28 PM <pauline-galea@gmx.com> wrote:

> Have also thought about the possibilities provided by
>
> for fi in 0 1 2 3 5 8 13 21; do
>
> Can ranges be handled with such construct?
>


In this specific example the first four values can be replaced by {0..3}

for fi in {0..3} 5 8 13 21; do


reply via email to

[Prev in Thread] Current Thread [Next in Thread]