title: Bat file to find certain text in .txt file
body: <p>Just wondering if there is any code in batch file that can find a certain text or word in a .txt file.</p>
  
  <p>For Example:</p>
  
  <ol>
  <li>The quick brown fox jump \mark{1} over the lazy dog</li>
  <li>The quick \mark{10} brown fox jump over the lazy dog</li>
  <li>The quick brown fox jump over the lazy \mark{100} dog</li>
  <li>The quick brown fox jump over the lazy dog \mark{1000}</li>
  <li>The \mark{1} quick brown fox jump over the lazy dog</li>
  <li>The quick brown fox jump over the lazy dog \mark{100}</li>
  <li>The quick brown fox \mark{30} jump over the lazy dog</li>
  </ol>
  
  <p>as you can see from the example above, I want to search for the "\mark{Number here}" word and also if there is any possibility that when there is an occurrence of the same word for example the first line and the fifth line, it will only display the "\mark{1}" of the first line and disregard the same word in the fifth line</p>
  
  <p>so the results will be printed in a txt file will be:</p>
  
  <ol>
  <li>\mark{1}</li>
  <li>\mark{10}</li>
  <li>\mark{100}</li>
  <li>\mark{1000}</li>
  <li>\mark{30}</li>
  </ol>