[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: case statement with non-consecutive numbers
From: |
Reuti |
Subject: |
Re: case statement with non-consecutive numbers |
Date: |
Thu, 15 Apr 2021 18:11:02 +0200 |
It's not the first in
https://stackoverflow.com/questions/12614011/using-case-for-a-range-of-numbers-in-bash
but quite nice usage:
$ case 1 in $((fuu<=10)) ) echo a;; $((fuu>10 && fuu<=25)) ) echo b;; esac
-- Reuti
> Am 15.04.2021 um 17:39 schrieb pauline-galea@gmx.com:
>
>
> How can I deal with using a case statement with numbers which are not
> consecutive,
> or with a sequence of ranges. Looked for examples, but were not specific
> enough
> about numerical values that are not consecutive.
>
>
>
- Re: case statement with non-consecutive numbers, (continued)
- Re: case statement with non-consecutive numbers, Eli Schwartz, 2021/04/15
- Re: case statement with non-consecutive numbers, Dennis Williamson, 2021/04/15
- Re: case statement with non-consecutive numbers, Eli Schwartz, 2021/04/15
- Re: case statement with non-consecutive numbers, Dennis Williamson, 2021/04/15
- Re: case statement with non-consecutive numbers, Eli Schwartz, 2021/04/15
- Re: case statement with non-consecutive numbers, Christopher Dimech, 2021/04/15
- Re: case statement with non-consecutive numbers, Eli Schwartz, 2021/04/15
- Re: case statement with non-consecutive numbers, Chet Ramey, 2021/04/15
Re: case statement with non-consecutive numbers,
Reuti <=