Say I want to create a range array of integers in a shell such that the array:
- Starts in
$START_VALUE - Ends in
$END_VALUE - Elements are
$STEP_SIZEapart, starting from$START_VALUE.
For anyone familiar with Python, I am effectively seeking the range counterpart in Bourne shells, and specifically in Zsh.
Are there any shell built-ins that help here?
Note: Python's range function supports increasing and decreasing range arrays (i.e. where $START_VALUE is either greater or smaller than $END_VALUE).