title: VboxManage list vms Linux Shell Script Always Outputs wrong result
body: <p>What am I doing wrong. I'm sure what I'm attempting to do should be clear to everyone.</p>
  
  <pre><code>#/usr/bin/env sh
  echo -e "What VM?"
  read vname
  if [ '`VboxManage list vms | grep -c "$vname"`' != 0 ]; then
      echo exists
  fi
  </code></pre>
  
  <p>Anyone have suggestions. Pretty much it should tell me if the VM exist or not.</p>