You must log in or register to comment.
Which is why I use a non shell scripting language for all but the most basic of scripts. If it has a loop imho its too complex for shell. Especially if your writing code that someone else will maintain in the future.