title: Capitalize all files in a directory using Bash
body: <p>I have a directory called "Theme_1" and I want to capitalize all the filenames starting with "theme". The first letter of every file name is lowercase and I want it to be upcase.</p>
  
  <p>I've tried this but all the letters in the filename are upcase, which is not what I want.</p>
  
  <pre><code>for f in * ; do mv -- "$f" "$(tr [:lower:] [:upper:] &lt;&lt;&lt; "$f")" ; done
  </code></pre>
  
  <p>I also tried this, but it doesn't work:</p>
  
  <pre><code>mv theme*.jpg Theme*.jpg
  </code></pre>