% cd YourDocRoot % find . -name '*.html' -exec rename .html .shtml '{}' \; #### % find . -name '*.html' -print0 | xargs -0 rename .html .shtml