title: In windows is it possible to write a batch that emulates findstr /n /r . file.txt?
body: <p>Okay, I know this is purely academic because the <code>findstr</code> command can do what I expect in a jiffy.</p>
  
  <p>I have a text file whose strings (lines) I want numbered. I was wondering whether it's possible to write a batch that emulates it and gives me the flexibility of moving the tagging integer anywhere in the string.</p>
  
  <p>For example the standard output is <code>1: some string</code></p>
  
  <p>Let us say I want</p>
  
  <ul>
  <li><code>1)some string</code> <em>(without using find and replace in Windows Explorer)</em>, or</li>
  <li><code>somestring........(1)</code>, or</li>
  <li><code>s 1] somestring</code></li>
  </ul>