title: wildcard in R pattern
body: <p>Hy guys, 
  I have a list of files which start with an "s" and some of them end 
  with an "m" while others with an "i".
  I would like just to get the ones finishing with "m" however this command does not work.</p>
  
  <pre><code>list=list.files(path="~/Deduplicated_input",pattern="^sorted_deduplicated_sorted*m$", full.names=TRUE)
  </code></pre>
  
  <p>What do you think?</p>