hi all gurus,
I run 2 command to produce 2 outputfiles and want to merge together with some calculation:
1) command1 :-
time %usr %sys %wio %idle
05:05 50 47 5 5
...
...
2) command2 :-
user
54
45
65
user
load
min
what I want to do is to produce 1 output file which is
1) ouput command2, sometimes include etc. user or load or min, I want to replace those with the last number etc here is 65
2) then to produce output like below:
time %usr %sys %wio %idle %TOTAL user %USER
05:05 50 47 5 5 %usr+%sys+%wio 54 (user/285)*100
...
...
...
please help me, thanx in advance.
I run 2 command to produce 2 outputfiles and want to merge together with some calculation:
1) command1 :-
time %usr %sys %wio %idle
05:05 50 47 5 5
...
...
2) command2 :-
user
54
45
65
user
load
min
what I want to do is to produce 1 output file which is
1) ouput command2, sometimes include etc. user or load or min, I want to replace those with the last number etc here is 65
2) then to produce output like below:
time %usr %sys %wio %idle %TOTAL user %USER
05:05 50 47 5 5 %usr+%sys+%wio 54 (user/285)*100
...
...
...
please help me, thanx in advance.