Bash Script Array Variable Length Intake