title: diff command + cygwin + how to read the output
body: <p>I am tring to understand how to use the <code>diff</code> command to undersand the difference between these files. Can someone please explain what this means?   <code>cases.sh</code> was written in notepad++, <code>cases2.sh</code> was written in nano from within cygwin on windows7. but I cannot see the difference as I don't think it is visible? what is the advice for getting cases.sh to work, but I want to understand what is wrong with it.</p>
  
  <pre><code>$ diff cases.sh cases2.sh
  1,13c1,13
  &lt; #!/bin/sh
  &lt; # Prompt user to enter a character
  &lt; echo "Please enter a letter:"
  &lt; read charac
  &lt; case $charac in
  &lt;       "a"|"A") echo "You have typed a vowel!" ;;
  &lt;       "e"|"E") echo "You have typed a vowel!" ;;
  &lt;       "i"|"I") echo "You have typed a vowel!" ;;
  &lt;       "o"|"O") echo "You have typed a vowel!" ;;
  &lt;       "u"|"U") echo "You have typed a vowel!" ;;
  &lt;       *)         echo "You have typed a consonant!" ;;
  &lt; esac
  &lt; exit 0
  \ No newline at end of file
  ---
  &gt; #!/bin/sh
  &gt; # Prompt user to enter a character
  &gt; echo "Please enter a letter:"
  &gt; read charac
  &gt; case $charac in
  &gt;       "a"|"A") echo "You have typed a vowel!" ;;
  &gt;       "e"|"E") echo "You have typed a vowel!" ;;
  &gt;       "i"|"I") echo "You have typed a vowel!" ;;
  &gt;       "o"|"O") echo "You have typed a vowel!" ;;
  &gt;       "u"|"U") echo "You have typed a vowel!" ;;
  &gt;       *)         echo "You have typed a consonant!" ;;
  &gt; esac
  &gt; exit 0
  </code></pre>
  
  <p><code>cases.sh</code> does not work, I wrote this in notepad++ and I get the error below </p>
  
  <pre><code>$ ./cases.sh
  Please enter a letter:
  t
  ': not a valid identifier `charac
  ./cases.sh: line 5: syntax error near unexpected token `$'in\r''
  '/cases.sh: line 5: `case $charac in
  </code></pre>
  
  <p><code>cases2.sh</code> does work but I wrote this in nano from within cygwin on windows7</p>
  
  <pre><code>$ ./cases2.sh
  Please enter a letter:
  t
  You have typed a consonant!
  </code></pre>