[bash] A C-Style for loop in bash

Bash also supports loops with expressions.