title: grep command to extract a word
body: <p>Here is my file.</p>
  
  <pre><code>    this is temp1
      this is temp2
      this is temp3
  </code></pre>
  
  <p>How to use grep command that while looking for pattern 'temp', the result should be displayes as only 'temp1, temp2, temp3', instead of whole sentences.</p>
  
  <p>Thanks</p>