title: How to output only text after a match with sed
body: <p>I am using sed to find a certain match in a text file and then put this value in to a variable, my problem is that I only want the text after the match, and not the entire line.</p>
  
  <pre><code>Ans=$(sed -n '/^'$1':/,/~/{/:/{p;n};/~/q;p}' $file.txt)
  </code></pre>
  
  <p>Text File</p>
  
  <pre><code>q1:answer1
  ~
  q2:answer2
  ~
  q3:answer3
  ~
  </code></pre>
  
  <p>Actual Output</p>
  
  <pre><code>q1:answer1
  </code></pre>
  
  <p>Expected Output</p>
  
  <pre><code>answer1
  </code></pre>