It is a prevalent practice to code for loops that need counting iteration with the help of the 'seq' command used in command-substitution. While this is okay for legacy shells (like bourne shell), all modern shells that include bash, ksh and zsh support a for-loop syntax that somewhat resembles the C syntax. In this video, you learn how to improvize the for-loop using the modern shell syntax.
...
https://www.youtube.com/watch?v=evg4zZpwM2Q