title: How to get only line number of the matched pattern using FINDSTR
body: <p>I got stuck in the windows batch(cmd) pattern search. I need to search for a pattern in a file and need to return the line number. I have used <code>FINDSTR</code> with <code>/X</code> option, but it is also appending the patterned matched line to the line number.</p>
  
  <p>Also I don't have privilege to install any utility like unix-utilities so that I can use <code>cut</code> to extract the line number.</p>