title: cygwin awk print adds strange character to filename
body: <p>I'm using Cygwin on a Windows machine to grab some information from a remote Linux machine and write the result to a file. Here is my command:</p>
  
  <pre><code>ssh user@remotemachine ps -aef | grep vnc | grep -v grep | awk '{print "&lt;size&gt;"$11"&lt;\/size&gt;""\n""&lt;colorDepth&gt;"$13"&lt;\/colorDepth&gt;"}' &gt; myfile.txt
  </code></pre>
  
  <p>However, when I then run</p>
  
  <pre><code>ls -l
  </code></pre>
  
  <p>on the directory where myfile.txt was written, it shows that the name of the file is actually <strong>myfile.txt?</strong>  (with the added question mark). Where did that extra character come from and how can I get the print code to name the file correctly as simply myfile.txt</p>
  
  <p>I would just run another command such as</p>
  
  <pre><code>mv myfile.txt? myfile.txt
  </code></pre>
  
  <p>or</p>
  
  <pre><code>mv myfile.txt^M myfile.txt
  </code></pre>
  
  <p>but in my bash script neither seems to find the file to rename it (though interestingly I can from the terminal (not in the script) start typing</p>
  
  <pre><code>mv myf
  </code></pre>
  
  <p>and then tab to complete the finding of the file, then finish the line with a new file name and that successfully renames the file.</p>