mpstat -P ALL 1 10
it results..
08:05:54 PM CPU %user %nice %sys %iowait %irq %soft %steal %idle intr/s
08:05:55 PM all 0.00 0.00 0.49 0.00 0.49 0.00 0.00 99.02 1024.75
08:05:55 PM 0 0.00 0.00 0.00 0.00 0.99 0.00 0.00 99.01 1024.75
08:05:55 PM 1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00 0.00
it shows for every interval %user, % nice %sys and all other coloumn names..
how should i modified a command so that i ll get only once as a column header and after every interval only relevant data.