Follow

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

👆 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
scy.name

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