title: Ignore $ in first of commands
body: <p>How can I write a function that Bash ignores <code>$</code> in first of commands? I want this because sometimes when I paste a command from web it includes a <code>$</code> in first character.</p>
  
  <p><code>$ ls</code> should do <code>ls</code> or <code>$ grep 'foo'</code> should do <code>grep 'foo'</code>.</p>
  
  <p>This will not work because <code>$</code> is not a valid function name.</p>
  
  <pre><code>function $ {
     ...
  } 
  </code></pre>