Some times you want to know information ping response with timestamp just use the below command,
# ping google.com | awk '/^[0-9]+ bytes from / { "date" | getline pong; close("date"); print pong":",$0; }'
Sat Aug 20 16:15:17 IST 2014: 64 bytes from bom03s05-in-f14.1e100.net (216.58.196.14): icmp_seq=1 ttl=55 time=23.2 ms
Sat Aug 20 16:15:18 IST 2014: 64 bytes from bom03s05-in-f14.1e100.net (216.58.196.14): icmp_seq=2 ttl=55 time=23.1 ms
Sat Aug 20 16:15:19 IST 2014: 64 bytes from bom03s05-in-f14.1e100.net (216.58.196.14): icmp_seq=3 ttl=55 time=22.9 ms
Comments (0)