i=0; while [ "$i" -le 10 ]; do
# ...
i=$((i + 1))

👆 This is how you do a for loop in a POSIX-compatible shell script. Yes, it’s ugly. No, seq(1) is not in POSIX.

Sign in to participate in the conversation

This is the personal Mastodon instance of Tim Weber (also known as scy). Because federation.