plus 100 with the last ip address

view story

http://stackoverflow.com – I have a list of ip address in the foo.txt,like this: ... Now i want to ping them like this: ping -c 2 ping -c 2 ... 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)