title: Bash script error: unexpected EOF while looking for matching `''
body: <p>I'm attempting to run this shell script but I get the errors:</p>
  
  <blockquote>
    <p>unexpected EOF while looking for matching `''</p>
  </blockquote>
  
  <p>and</p>
  
  <blockquote>
    <p>syntax error: unexpected end of file</p>
  </blockquote>
  
  <p>There's no error when I switch .asd/‘ to .asd/' but nothing seems to happen.  The goal of the script is to tell me which music files in /Music don't have a corresponding .asd file.  Script is:</p>
  
  <pre><code>#!/bin/bash
  files=`mdfind -onlyin ~/Music “kMDItemUserTags==Green” | sed -E -e 's/\.[a-zA-Z1-3]+$/.asd/‘`
  for aFile in $files 
  do
      if [ ! -e $aFile ]; then
          echo $aFile;
      fi
  done
  </code></pre>
  
  <p>Thanks in advance for any help.</p>