>>> On 9/23/2008 at  3:29 PM, in message
<[EMAIL PROTECTED]>, "Edmund R. MacKenty"
<[EMAIL PROTECTED]> wrote: 
-snip-
> vmstat 10 86040 | while read line; do echo "$(date) $line"; done > vmstat.out

Or, if you just want a timestamp every so many lines of output (keeping in mind 
that the first line of each set will be the average since the last reboot):

for ((i=1; i=i+1 ; i<100))
  do echo
       date
       vmstat 10 30
  done > vmstat.output


Mark Post

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to