title: Windows Batch: Search all files in file, if line contains "apple" or "tomato" echo it
body: <p>I'm trying to write a simple batch that will loop through every line in a file and if the line contains "apples" or "tomato" then to output that line.</p>
  
  <p>I have this code to find one string and output it but I can't get the second in the same batch. I also want it to echo the lines at it finds them.  </p>
  
  <pre><code>@echo OFF
  
  for /f "delims=" %%J in ('findstr /ilc:"apple" "test.txt"') do (
  echo %%J
  )
  </code></pre>
  
  <p>It would need to find lines that contain either "apples" or "tomato" I can easily run the code above with the two lines I need but I need the lines to be outputted inter each other.</p>
  
  <p>For example I need:</p>
  
  <pre><code>apple
  tomato
  tomato
  apple
  tomato
  apple
  apple
  </code></pre>
  
  <p>NOT:</p>
  
  <pre><code>apple
  apple
  apple
  </code></pre>
  
  <p>THEN</p>
  
  <pre><code>tomato
  tomato
  tomato
  </code></pre>
  
  <p>Thanks in advance.</p>