bash - Ping with a variable in linux script -


i want script pings ip-addresses 192.168.0.45 192.168.0.17 192.168.0.108 doing this:

bash script.sh 45 17 108 

i want give last numbers bash ping ip-addresses.

i don't know how have this. have work 'case' in while or else??

#!/bin/bash  in $*;   ping 192.168.0.$i done 

Comments

Popular posts from this blog

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

node.js - Using Node without global install -

php - CakePHP HttpSockets send array of paramms -