Can someone suggest what to do if I have to read between two keywords like
*System_Power
1
1.2
1.8
2
*System_Terminate
In this case the asnwer would be
1
1.2
1.8
2
I tried using awk like
awk '$0 =="*System_Power" # start printing when 1st field is *System_Power
$0 != "*System_Terminate"{ # until reach the *System_Terminate
print; } ' powerSummary > reportedFailure.k # Read from file powerSummary and pipe to reportedFailure.k
exit
where the above data is found somewhere in the middle of file powerSummary.
I would be thankful for your corrections.
This will work for you: