title: Windows cmd pass output of one command as parameter to another
body: <p>In linux it is possible t do this:</p>
  
  <pre><code>git diff $(git status -s -b | sed -n '2p' | cut -d' ' -f2-)
  </code></pre>
  
  <p>or a simpler case</p>
  
  <pre><code>ls $(pwd) 
  </code></pre>
  
  <p>The question is how can I achieve the same in windows? (not using a batch file,  a one liner in command prompt). Not all commands support piping so how can we evaluate one and pass result as parameter to another? </p>
  
  <p>I've tried piping and <code>&lt;</code> and <code>&gt;</code> but none work.</p>
  
  <pre><code>git diff &lt; (git status -s -b | sed -n '2p' | cut -d' ' -f2-) 
  </code></pre>
  
  <p>Try that yourself it expects a file. And <code>|</code> doesn't work either as <code>git diff</code> doesn't support it</p>
  
  <pre><code>git status -s -b | sed -n '2p' | cut -d' ' -f2- | git diff // results in illegal seek
  </code></pre>