title: How does one remove all files with * in a directory using sh library in python?
body: <p>I was trying to delete all files that started with the word slurm using the <a href="https://amoffat.github.io/sh/#tutorials" rel="nofollow">sh</a> library. In the command line I would do:</p>
  
  <pre><code>rm slurm*
  </code></pre>
  
  <p>such a command would work in a shell.</p>
  
  <p>But when I do:</p>
  
  <pre><code>sh.rm("./slurm*")
  </code></pre>
  
  <p>and other variants (like only "slurm*" or build the command first using sh.Command and so) it thows me the same error:</p>
  
  <pre><code>  RAN: '/bin/rm slurm*'
  
    STDOUT:
  
  
    STDERR:
  /bin/rm: cannot remove `slurm*': No such file or directory
  </code></pre>
  
  <p>Is that a bug with the library or is it that I can't find the correct docs to know how to execute commands correctly using <code>sh</code>? Or is there a better way of running that command in python?</p>