title: how to replace multiple lines in a file after a specific character with null in unix
body: <p>For example, if my file contains</p>
  
  <pre><code>{z:
  abdc
  cabdfd
  cabdfd
  casfdbf
  cdff
  -}$
  </code></pre>
  
  <p>Once find the string value <code>{z:</code> the multiple lines after that upto <code>-}</code> must be replaced by null character and it should follow the same procedure globally throughout the file.</p>
  
  <p>This must be done in Unix I tried using <code>sed</code> command to search for multiple lines but unable to succeed with it though.</p>