title: How do I use grep to extract a specific field value from lines
body: <p>I have lines in a file which look like the following</p>
  
  <pre><code>....... DisplayName="john" ..........
  </code></pre>
  
  <p>where <code>....</code> represents variable number of other fields. </p>
  
  <p>Using the following grep command, I am able to extract all the lines which have a valid 'DisplayName' field:</p>
  
  <pre><code>grep DisplayName="[0-9A-Za-z[:space:]]*" e:\test
  </code></pre>
  
  <p>However, I wish to extract just the name (ie "john") from each line instead of the whole line returned by grep. I tried piping the output into the <code>cut</code> command but it does not accept string delimiters.</p>