Bash Pass Array Variable Length Pipe