title: Run .sh file from cygwin on windows 7
body: <p>I am trying to run <code>.sh</code> file from <code>cygwin</code> on windows 7</p>
  
  <p>My <strong>dumdb.sh</strong> file content</p>
  
  <pre><code>#!/bin/bash
  for database in $(mysql -e "show databases"|awk -F " " '{print $1}') do
      mysqldump -u root -h localhost -p $database &gt; $database.sql
  done
  </code></pre>
  
  <p>On running this command</p>
  
  <pre><code>$ sh dumpdb.sh
  </code></pre>
  
  <p>m getting following error</p>
  
  <pre><code>bash: line 3: syntax error near unexpected token `mysqldump'
  bash: line 3: `mysqldump $database &gt; $database.sql'
  </code></pre>
  
  <p>Where I am doing wrong?</p>