Ping 4 times each of the IP addresses 192.168.10.1, 192.168.11.1, 192.168.12.1, 192.168.13.1, 192.168.14.1, 192.168.15.1, 192.168.16.1, 192.168.17.1, 192.168.18.1, and 192.168.19.1 and print the last part of the output (excluding the last character).
ping -c4 $(seq -f "192.168.%g.1" 10 10) | awk '{print substr($4, 1, length($4)-1)}'