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

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -