aishwarya gowda
New Member
Hi,
I have a large text file, where i executed a single command multiple times .
1st line is the command executed
2nd and 3rd line - output of the command
and it repeats , as i executed the command multiple times.
sample text file is attached : test.txt
excel sheet when the required values are filled is attached: excel-sheet2
Requirement:
1.To fetch different data from all the three lines and need to place it in the respective column of the excel sheet, where template is already ready.
a. To fetch time value from line (1,4,7,10,13,......), where i run the command
b. memory value from line (2,5,8,11.......)
c. usr and sys value from line (3,6,9,12,.......)
I tried to fetch by considering the line numbers but facing errors.
Any kind of suggestion is helpful.
Thank you.
I have a large text file, where i executed a single command multiple times .
1st line is the command executed
2nd and 3rd line - output of the command
and it repeats , as i executed the command multiple times.
sample text file is attached : test.txt
excel sheet when the required values are filled is attached: excel-sheet2
Requirement:
1.To fetch different data from all the three lines and need to place it in the respective column of the excel sheet, where template is already ready.
a. To fetch time value from line (1,4,7,10,13,......), where i run the command
b. memory value from line (2,5,8,11.......)
c. usr and sys value from line (3,6,9,12,.......)
I tried to fetch by considering the line numbers but facing errors.
Any kind of suggestion is helpful.
Thank you.