title: echo variable result in quotes BASH
body: <p>I have a bash script like this:</p>
  
  <pre><code>#!/bin/bash
  pavadinimas=$1
  pavadinimas2=${pavadinimas::-4}
  echo "#!/bin/sh
  mysql -uUSER -pPASSWORD -DDatabase -e 'UPDATE boom SET count = count + 1 WHERE Failo_vardas="$pavadinimas"';
  vlc -f --play-and-exit /var/www/html/uploads/$pavadinimas" &gt; /var/www/html/script/"$pavadinimas2.sh"
  </code></pre>
  
  <p>And I'm having problem with this line: </p>
  
  <pre><code>mysql -uUSER -pPASSWORD -DDatabase -e 'UPDATE boom SET count = count + 1 WHERE Failo_vardas="$pavadinimas"';
  </code></pre>
  
  <p>As you see I want to add the variable to quotes, but It comes out without It. I tried a lot of combinations to solve this out, but I failed. Lack of experience :/ </p>
  
  <p>Script result:</p>
  
  <pre><code>#!/bin/sh
  
      mysql -uUSER -pPASSWORD -DDatabase -e 'UPDATE boom SET count = parodymai + 1 WHERE Failo_vardas=name.mp4';
      vlc -f --play-and-exit /var/www/html/uploads/gaidys.mp4
  </code></pre>
  
  <p>I want to echo the variable in quotes like this:</p>
  
  <pre><code>mysql -uUSER -pPASSWORD -DDatabase -e 'UPDATE boom SET count = count + 1 WHERE Failo_vardas="name.mp4"';
  </code></pre>