title: Extract Strings from a text file into another text file? In .bat
body: <p>I have a text file that contains names of all the files in my directory followed by its date.</p>
  
  <p>Is it possible in batch/bash to extract those files names from the text file and its date based on a value on the string.</p>
  
  <p>I have already checked <a href="https://stackoverflow.com/questions/17971803/extracting-strings-from-text-file">Extracting strings from text file</a>
  but this does not answer my query. I have also checked numerous others including <a href="https://stackoverflow.com/questions/42243585/get-specific-string-from-a-text-file-using-batch-command">Get specific string from a text file using batch command</a> and seems to hit a dead end as it doesn't get all the lines from the whole text file. </p>
  
  <p>a typical string/file name looks like this</p>
  
  <blockquote>
    <p>5f367f72-9e2f-4f89-b3d6-2cdafed17d94_IRO_RMUSI_SONG_TimayaKingPerryy_KomKom.mxf_A1.MXF,25/07/2019 05:47:24</p>
  </blockquote>
  
  <p>The identifier is IRO. i have more files in the text file as well but I want it to be able to look at the text file, find everything that has the identifier and make a new text file with the IRO file and date populated.</p>
  
  <p>There are about 150,000 +/- line of string so manually doing this wont be easy. </p>
  
  <p>If its possible to be done in a batch-file i would appreciate it. </p>