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