You can use the command below to rename all the files in the folder: for f in *.js do mv - "$f" "$.html] specifies what the processing will do. ![]() rw-r-r- 1 zaira zaira 0 Sep 30 00:24 blog.js rw-r-r- 1 zaira zaira 0 Sep 30 00:24 config.js rw-r-r- 1 zaira zaira 0 Sep 30 00:24 index.js Here we have a list of files with the extension. Let's discuss a script where you can rename files in a bulk using a loop and the mv command. Web_page.html How to Name Files in Bulk Using mv Let's list the files and see if the file has been renamed: ls You use the mv command as follows: mv index.html web_page.html ![]() Let's say you want to rename index.html to web_page.html.
0 Comments
Leave a Reply. |