Fill in bash array with script arguments : <p>I got a request to pass a list of ip's as an array in a bash script. For example:</p>

<p>./myscript.sh  192.168.0.1,192.168.0.10,192.168.0.15......</p>

<p>The ip's in the above parameter should properly populate the array present in the bash script. I would like it if anyone can show it in conjunction with the getopts utlity.</p>

<p>FYI - I'm fairly new to bash, so please be understanding......</p>
