title: How to get whole phrase containing token in batch
body: <p>My batch file should output to a text file every whole phrase containing <code>dog.</code></p>
  
  <p>For example, suppose that input file is this:</p>
  
  <pre><code>dog.house, asdasd dog.dinner
  dog.hello
  </code></pre>
  
  <p>The result should be:</p>
  
  <pre><code>dog.house
  dog.dinner
  dog.hello
  </code></pre>
  
  <p>So far, my batch file is:</p>
  
  <pre><code>for /F "tokens=*" %%a in ('findstr /c condor. temp.txt') do echo %%a &gt;&gt; resultado.txt
  </code></pre>
  
  <p>But returns the whole line instead of the phrase containing "dog.".
  I'm having trouble understanding how batch works.</p>