title: Cut specific words matching a pattern from a text file
body: <p>I am trying to extract words from a text file matching a pattern using shell script. For example if a line contains </p>
  
  <pre><code>This is a sample text to illustrate my scenario text=info id=2342
  Second line to illustrate text=sample id=q2312
  </code></pre>
  
  <p>I want the output to be like </p>
  
  <pre><code>text=info id=2342
  text=sample id=q2312
  </code></pre>
  
  <p>Can somone please tell me how do i achieve it using cut/grep command?</p>