title: Read text file lines starting with numbers using a batch file
body: <p>I'm not sure if this is possible, but is there a way for a batch file to read a text file, but skip lines that do not start with a number?</p>
  
  <p>For example:</p>
  
  <pre><code>handled
  219278
  check
  219276
  control
  219274
  co
  219268
  </code></pre>
  
  <p>Can a for loop skip handled, check, control, etc.?</p>
  
  <p>I know this:</p>
  
  <pre><code>cscript C:\Users\c1921\Test\curltest.vbs"!$MyVar!"&gt;&gt;C:\Users\c1921\Test\Datapoints\!$MyVar!.txt
  </code></pre>
  
  <p>Will put all output to this text file but this:</p>
  
  <pre><code>FOR /F %%i in (C:\Users\c1921\Test\Datapoints\!$MyVar!.txt) DO (
  set "$UnitID=%%i"
  )
  </code></pre>
  
  <p>Reads every line into a variable. Can I somehow use delims and tokens to only get the numbers?</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>I thought this might be possible going off of an answer on this question: <a href="https://stackoverflow.com/questions/2701910/windows-batch-file-to-echo-a-specific-line-number">Windows Batch file to echo a specific line number</a></p>
  
  <p>The file I have on occassion might not have a number between the words for example:</p>
  
  <pre><code>handled
  check
  219276
  control
  219274
  co
  219268
  </code></pre>
  
  <p>This should not happen often, but I'd like to make sure I can avoid this when it does.</p>