$ ping hogehoge | perl -pe '$_=`date "+%F %T: $_"`;chomp' 2014-05-27 18:24:49: PING hogehoge (xxxx) 56(84) bytes of data. 2014-05-27 18:24:49: 64 bytes from hogehoge (xxxx): icmp_seq=1 ttl=64 time=0.215 ms 2014-05-27 18:24:50: 64 bytes from hogehoge (xxxx): icmp_seq=2 ttl=64 time=1.17 ms 2014-05-27 18:24:51: 64 bytes from hogehoge (xxxx): icmp_seq=3 ttl=64 time=0.321 ms 2014-05-27 18:24:52: 64 bytes from hogehoge (xxxx): icmp_seq=4 ttl=64 time=0.219 ms :
ワンライナーをもう少し短くできないかなぁ