title: bash dealing with multiple quotation
body: <p>From a bash terminal, I want to log-in to a computing node and execute some command, for example, I do this to check the running jobs</p>
  <pre><code>ssh -t node1 'top -bn1 | grep R | grep -v top'
  </code></pre>
  <p>This logins to <code>node1</code> and runs the <code>top</code> command and grep desired output.<br />
  Now I want to check the memory load of the node. I have taken this code from here <a href="https://unix.stackexchange.com/questions/119126/command-to-display-memory-usage-disk-usage-and-cpu-load">https://unix.stackexchange.com/questions/119126/command-to-display-memory-usage-disk-usage-and-cpu-load</a></p>
  <pre><code>free -m | awk 'NR==2{printf &quot;Memory Usage: %s/%sMB (%.2f%%)\n&quot;, $3,$2,$3*100/$2 }'
  </code></pre>
  <p>Now, I can not just do</p>
  <pre><code>ssh -t node1 '&lt;above command&gt;'
  </code></pre>
  <p>as there are multiple quote that will affect the command. Is there a way to execute the above command?</p>