ぶていのログでぶログ

思い出したが吉日

2014-05-27から1日間の記事一覧

pingの結果にタイムスタンプをつける

$ 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 fro…