0

plus 100 with the last ip address

view story
linux-howto

http://stackoverflow.com – I have a list of ip address in the foo.txt,like this: 192.168.0.10 192.168.0.11 192.168.0.12 ... Now i want to ping them like this: ping -c 2 192.168.0.110 ping -c 2 192.168.0.111 ... that means the last number of ip in foo.txt plus 100. How can i write a shell script to do this automaticly. Thank you for your answer. (HowTos)