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
Post a Comment