title: Search for string and grab data between brackets proceeding it
body: <p>In ksh/shell, using the below example string, I want to search for the words "Masking View Names" and then extract the data between the brackets (but not including the brackets).</p>
  
  <pre><code>Masking View Names
   {
     hostname1
     hostname2
   }
  Parent Initiator Groups
   {
     None
   }
  </code></pre>