linux - Shell Script to generate next hundred ip addresses -
if have ip address 192.168.1.2, need generate next 100 ips such keeps adding base ip.
i tried execute echo 192.168.1.{2..102}
works fine need generic code can generate many ip addresses specified base ip address using shell script.
something like:
#!/bin/bash i=1 while (( <= 100 )) echo "x.y.z.$i" i=$((i + 1)) done
Comments
Post a Comment