title: regex/wildcard in scp
body: <p>Is it possible to use a wildcard in scp</p>
  
  <p>I am trying to achieve:</p>
  
  <pre><code>loop
  {
     substitue_host (scp path/file.jar user@host:path1/foo*/path2/jar/)
  }
  </code></pre>
  
  <p>I keep on getting "scp: ambiguous target"</p>
  
  <p>Actually I am calling an api with source and dest that uses scp underneath and loops over diff hosts to put files</p>
  
  <p>Thanks!</p>