Bash Script Array Variable Length Instructions