title: How to get just the last two lines of standard output of command DIR?
body: <p>The command I am executing is the following:</p>
  
  <pre><code>dir &gt;&gt; dir.txt
  </code></pre>
  
  <p>I would be interested in redirecting only certain lines to the txt, for example the last two lines. How can I do that? It occurs to me with <code>findstr</code>,  but I don't know how.</p>