title: Replacing multiple lines of text using sed
body: <p>I have a file input.txt containing the following text</p>
  
  <pre><code>Total users:
  
      abc
      xyz
      pqrs
  </code></pre>
  
  <p>The number of users is subject to change but there will be atleast one user all the time. I want to replace the user names with wild card '*' using sed</p>
  
  <pre><code>Total users:
  
      *   
  </code></pre>
  
  <p>Is there a way by which I can look for 'Total users:' string and replace everything after that with a *. Some thing like</p>
  
  <pre><code>sed s/Total users: \n[Till EOF]/Toal users: \n*/g
  </code></pre>