I agree but I wanted to avoid this:
... writing 34 IP addresses as CLI parameter, that is around 373 letters, is not a nice solution.
... writing 34 IP addresses as CLI parameter, that is around 373 letters, is not a nice solution.
./script 127.0.0.1 5
./script 127.0.0.2 5
. . .
./script 127.0.1.254 10I had to call program will all IP addresses, one by one would just not work.
Your idea is fine, but it was just acceptable in my use case.
./script \
192.168.1.1 \
192.168.1.2 \
192.168.1.3 \
...