title: Cygwin bash calls adb with awk does not see dollar sign $
body: <p>I am running a bash script under windows cygwin.  </p>
  
  <p>Important note: </p>
  
  <p>I run the bash script from a command.exe window like:</p>
  
  <p>bash.exe myscript.sh</p>
  
  <p>The script will do an adb shell and ps/awk/kill a process.  The android is rooted.  The script below works except for the awk part.  It seems that something about running this under window makes the dollar sign in $2 invalid.  So the last awk part does not work.  Help!</p>
  
  <pre><code>#!/bin/bash     -x      
  C:/scripts/adb.exe shell &lt;&lt; EOF
  su
  ls
  ps  | grep "myapp" | echo  awk '{print $2}'
  EOF
  </code></pre>
  
  <p>The output I get from this script:</p>
  
  <pre><code># awk {print }
  </code></pre>