How to Change Extension For All Files in a Folder via Command Line

By | May 20, 2015

Let’s say you want to rename all files you have in a folder from .html to .php. There is a simple way to do this:

rename .html .php *.html

Just one line – no need for creating any shell scripts with loops.

Leave a Reply

Your email address will not be published. Required fields are marked *