<p>Is there any way of batch renaming files in sub directories?</p>

<p>For example:</p>

<p>Rename <code>*.html</code> to <code>*.htm</code> in a folder which has directories and sub directories.</p>

In Bash, you could do the following:
```
```
for x in $(find . -name \*.html); do
  mv $x $(echo "$x" | sed 's/\.html$/.htm/')
done
```
```