title: How can I get unique records from in the below case
body: <p>I am trying to run a script where I am trying to find a value from a file.
  File is :</p>
  
  <pre><code>8009 [main] INFO  com.utilities.task.ICSTask  - Submitted run of the task: taskId=0015FL0Z0000000000R6, taskRunId=20789
  https://use4.dm-us.com/saas/api/v2/activity/activityLog?taskId=0015FL0Z0000000000R6&amp;runId=20789
  </code></pre>
  
  <p>Code I wrote is :</p>
  
  <pre><code>SetLocal EnableDelayedExpansion
  @for /f "tokens=2 delims=:," %%i in ('type abc.txt') do ( 
      @set%%i 
      REM To remove Space into Variable
      Set "taskID=!taskID: =!"
      echo !taskID!  &gt;&gt; def.txt
  )
  </code></pre>
  
  <p>Result I am getting is :</p>
  
  <blockquote>
    <p>0015FL0Z0000000000R6<br>
    0015FL0Z0000000000R6  </p>
  </blockquote>
  
  <p>I want to get unique value of <code>0015FL0Z0000000000R6</code> in <code>def.txt</code> file as a result. How can I achieve this?</p>