just use the bash for loops

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>