|
From: | pauline-galea |
Subject: | For loop with a skip |
Date: | Sun, 18 Apr 2021 21:20:55 +0200 |
Is it possible to code a loop with a skip in bash Could only do this right now, but would like to skip values using a step size stored in a[3]. for ((i=a[0]; i<=a[1]; i++)) do echo "$i" done
[Prev in Thread] | Current Thread | [Next in Thread] |