Changes between Initial Version and Version 1 of jazz/18-05-24


Ignore:
Timestamp:
May 24, 2018, 3:31:06 PM (6 years ago)
Author:
jazz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • jazz/18-05-24

    v1 v1  
     1= 2018-05-24 =
     2
     3== jq ==
     4
     5* 同事寫了個有趣的 jq 範例,可以把 epoch 時間戳記的欄位用 jq 轉成 ISO 格式~
     6{{{
     7kafkacat -q -b kafka1 -t ${topic} | jq -c '. | select ( ( now - .epoch) > 60) | [.receiveServer, (.epoch|todateiso8601)]'
     8}}}