Renaming folders with a loop in bash is easy.

Renaming folders is very easy. I have a folder with subdirectories named from 1 to 9. And I wish to rename them folder1 to folder9. This can be easily done with bash. This example will take care of this problem easily. 4.4 Fri Jan 31 jason@Yog-Sothoth 0: $ for i…

Read More

Using the Linux rename command and other useful commands for Linux Mint 13.

The rename command for the Linux shell allows you to rename a directory full of files en-mass. This first example, based on the examples in the rename manual page. Firstly renaming a directory full of xhtml files to the html extension. rename ‘s/\.xhtml$/.html/’ *.xhtmlrename ‘s/\.xhtml$/.html/’ *.xhtml And renaming a folder…

Read More