help-bash
[Top][All Lists]
Advanced

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

For loop with a skip


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



reply via email to

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