Posts tagged Mass file renaming in Linux
Linux provides a command “rename” to help rename files using patterns. If you don’t see the rename command in your system, you can run the following command to install it under Fedora/RHEL Linux.
[root@techpulp ~]# yum install -y util-linux-ng
The following shows the syntax of rename command.
rename <from> <to> <files> from - source pattern to - destination pattern files - list of files to operate on
The following command renames all files with .htm extension to .html extension.
[neo@techpulp ~]# rename .htm .html *.htm
The following command renames all files with .jpeg extension to .jpg extension.
[neo@techpulp ~]# rename .jpeg .jpg *.jpeg
The following command searches recursively More >