title: Linux red-hat5.4 + awk file manipulation
body: <p>how to match PARAM (param=name) word in file.txt and print the lines between </p>
  
  <p>NAMEx and NAMEy, via awk , as the following way :</p>
  
  <p>if PARAM  matched in the file.txt , then awk will print only the words between the close NAMES strings while PARAM is one of the names</p>
  
  <p>remark1 PARAM can be any name as Pitter , Bob , etc.....</p>
  
  <p>remark2 awk will get PARAM=(any name)</p>
  
  <p>remark3 we not know how many spaces we have between (# to NAME) </p>
  
  <pre><code> more file.txt
  
   #     NAMES1
  
     Pitter 23
     Bob 75 
  
   #  NAMES2
  
     Donald 54
     Josef 85
     Patrick 21  
  
   #         NAMES3
  
     Tom 32
     Jennifer 85
     Svetlana 25
  
   # NAMES4
  </code></pre>
  
  <p>examples ( regarding file.txt contents )</p>
  
  <pre><code> In case PARAM=pitter then awk will print the names to out.txt file 
  
   Pitter 23
   Bob 75 
  
  
   In case PARAM=Josef then awk will print the names to out.txt file 
  
  
   Donald 54
   Josef 85
   Patrick 21  
  
  
   In case PARAM=Jennifer  then awk will print the names to out.txt file 
  
  
   Tom 32
   Jennifer 85
   Svetlana 25
  </code></pre>