I want to ping IP addresses and save only statistics and only the IP address - 0% packet loss
$ ping -s 100 -c 5 -i 1 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 100(128) bytes of data.
72 bytes from 8.8.8.8: icmp_seq=1 ttl=48 (truncated)
72 bytes from 8.8.8.8: icmp_seq=2 ttl=48 (truncated)
72 bytes from 8.8.8.8: icmp_seq=3 ttl=48 (truncated)
72 bytes from 8.8.8.8: icmp_seq=4 ttl=48 (truncated)
72 bytes from 8.8.8.8: icmp_seq=5 ttl=48 (truncated)
--- 8.8.8.8 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4006ms
rtt min/avg/max/mdev = 50.869/51.435/51.602/0.348 ms
Can I write to log only IP address - 0% packet loss?
ping
in some way and save the filter result to a log file. That would be on topic here.