ping 添加时间显示
时间:2019-09-07 00:54:39
收藏:0
阅读:509
while :;do ping -c 1 127.0.0.1|awk ‘/ttl=/‘|sed "s/^/
date +%Y-%m-%d\|%T /";sleep 1;done
或者
执行 ping 127.0.0.1 | awk ‘{ print $0"\t" strftime("%H:%M:%S",systime()) } ‘ 
原文:https://blog.51cto.com/14531517/2436006
评论(0)