I got a request to pass a list of ip's as an array in a bash script. For example:
./myscript.sh 192.168.0.1,192.168.0.10,192.168.0.15......
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.
FYI - I'm fairly new to bash, so please be understanding......