vmstat with timestamp

Load testing tools for QAs

vmstat with timestamp:

function stamp {
  while read line
  do
    printf "$line"
    date '+ %m-%d-%Y %H:%M:%S'
  done
}
vmstat 3 5 | stamp

ref: http://www.unix.com/unix-dummies-questions-answers/32892-vmstat-output-date-timestamp.html

發表留言