title: Ubuntu pass Password containing '"' to sudo
body: <p>I am trying to pass the password that contains <code>&quot;</code> character as part of my password in a bash script to <code>sudo -S su</code>. I am running the bash script but I get prompt as <code>bash error: line1 EOF as end to &quot; not found</code>.</p>
  <p>Suggest some method to pass the password containing quotes successfully.</p>
  <p><code>echo &quot;pass\&quot;word&quot; | sudo -S su</code></p>
  <p>prompt:
  <code>bash error: line1 EOF as end to '&quot;' not found</code></p>
  <p>I want to run the bash script without errors</p>