形式
Plain text
投稿日時
2020-10-30 04:37
公開期間
無期限
  1. 14:57 root@
  2. # cat seservice13783 | sort -k 2
  3. "2020-10-18T11:35:57.970451478Z 158.177.177.93"
  4. "2020-10-19T05:03:23.29479408Z 158.177.177.93"
  5. "2020-10-19T22:30:49.359389161Z 158.177.177.93"
  6. "2020-10-20T15:58:14.699997636Z 158.177.177.93"
  7. "2020-10-21T09:25:40.787000154Z 158.177.177.93"
  8. "2020-10-21T10:32:38.380137936Z 158.177.177.93"
  9. "2020-10-21T10:32:38.440539359Z 158.177.177.93"
  10. 15:23 root@
  11. # date +"%s" -d 2020-10-28T00:07:02.630071428Z
  12. cat seservice13783_sort_k2 | awk '{ print substr( $1, 2)
  13. 15:36 root@
  14. # echo "2020-10-28T00:07:02.630071428Z" | date +"%s" -d -
  15. previous_timestamp=0
  16. while read -r line; do
  17. date_string=$( echo $line | awk '{print substr($1, 2)}' ) #this maybe can be leaner
  18. ip_addr=$(echo $line | awk '{ print $2 }' )
  19. date_timestamp=$( date +"%s" -d $date_string ) #getting the date from standardin with - doesn't yield good results
  20. hours_difference=$( echo "scale=2; ( ${date_timestamp} - ${previous_timestamp} ) / 3600 " | bc )
  21. #echo $date_timestamp
  22. previous_timestamp=$date_timestamp
  23. echo "${hours_difference} ${date_string} ${ip_addr}"
ダウンロード 印刷用表示

このコピペの URL

JavaScript での埋め込み

iframe での埋め込み

元のテキスト