Slide 48
Slide 48 text
ίϚϯυϥΠϯͰΔͱ
$ awk 'function fetchcommand() { c =""; for (i = 4; i < NF; i++)
{ c = c " " $i }; c = c " " $NF; return c } NR==1 { time=$1;
command=fetchcommand() } NR!=1 { print command, $1-time;
time=$1; command=fetch_command(); }' /tmp/redis.log
surported by @tkuchiki