title: How to match a pattern with multi-line and displays them?
body: <p>I have a head file (.h) which contains the definition of structures in C.</p>
  
  <p>Some are defined like this:</p>
  
  <pre><code>typedef struct {
   ...
   ...
   ...
  } structure1
  </code></pre>
  
  <p>Some are defined like this:</p>
  
  <pre><code>typedef struct structure2 {
   ...
   ...
   ...
  } structure2
  </code></pre>
  
  <p>and some commanded out structure definition:
  Some are defined like this:</p>
  
  <pre><code>//typedef struct {
  // ...
  // ...
  // ...
  //} structure1
  </code></pre>
  
  <p>How can I use egrep or more unix command to find all the structures in the head file and print all the names of structures?</p>
  
  <p>Thanx.</p>