title: Passing quoted variables in remote ssh command
body: <p>I want to grep through a few files for a string. In this example I want to grep for "test 1234"</p>
  
  <pre><code>#!/bin/bash
  
  variable="test 1234"
  ssh root@server "grep "$variable" /path/*"
  </code></pre>
  
  <p>This script doesn't work because test 1234 is passed to the server instead of "test 1234" </p>
  
  <p>How can I fix this?</p>