vmstat の表示行頭に時刻を付与する
# vmstat 2 | gawk '{ print strftime("%Y-%m-%d %H:%M:%S") $0 }'
2009-01-07 22:17:33procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu---
2009-01-07 22:17:33 r b swpd free buff cache si so bi bo in cs us sy id wa
2009-01-07 22:17:33 2 0 224 16792 94452 230288 0 0 0 3 0 0 1 0 98 0
2009-01-07 22:17:35 0 0 224 16792 94452 230288 0 0 0 0 1013 322 3 2 95 0
2009-01-07 22:17:37 0 0 224 16792 94452 230288 0 0 0 0 1012 317 3 2 95 0
2009-01-07 22:17:39 0 0 224 16792 94460 230288 0 0 0 32 1014 320 3 2 95 0