title: How to use the .* wildcard in bash but exclude the parent directory (..)?
body: <p>There are often times that I want to execute a command on all files (including hidden files) in a directory. When I try using</p>
  
  <pre><code>chmod g+w * .*
  </code></pre>
  
  <p>it changes the permissions on all the files I want (in the directory) and all the files in the parent directory (that I want left alone).</p>
  
  <p>Is there a wildcard that does the right thing or do I need to start using find?</p>