When i ran the command as sar in linux box. i got a output like as below
[spt@scrbgcddkcph431 tools]$ sar
Linux 2.6.18-274.3.1.el5 (scrbgcddkcph431) 06/29/2012
12:00:01 AM CPU %user %nice %system %iowait %steal %idle
12:10:01 AM all 8.78 0.00 26.11 3.80 0.00 61.30
12:20:01 AM all 3.09 0.00 5.12 1.13 0.00 90.65
12:30:01 AM all 1.03 0.00 1.69 0.04 0.00 97.23
But i would like to convert from above output to mentioned below one.
Thank you for your's quick response.. But i would like proper alignment as well. Because i am going to store those entry into one file. then will read from that file in php ...
@itkamaraj: when a moderator asks a user to show what effort they have made it is rude just to steam in and blurt out an answer to the question. You have been asked not to do this, on previous occasions.
Also, please change your user title. It's a form of signature, and we don't allow those. Thanks.