title: ASSIGN win XP commandline output to variable
body: <p>i would like to translate a following script from linux shell to Windows XP shell</p>
  
  <pre><code>GPSID=$(awk '/GPSID/ {print $3}' gora.RTK ) 
  awk -v variable=${GPSID} 'BEGIN {printf "Numer seryjny : " variable,$1}' &gt;&gt;out.txt
  </code></pre>
  
  <p>The second line has been translated; the problem is with defining a variable that contains shell output in windows :-(</p>