GPRename is a Linux batch rename tool. You can use gprename to rename a group of files or directories in a directory. The program is available in most distribution’s repositories. You can also download and compile it from the web site, http://gprename.sourceforge.net/.
The program window has a directory selection tree on the left, where you can select the directory you want to work from. On the right, you have two tabs. One for files and the other for directories. You can use the tabs to rename files or subdirectories under the directory you select from the tree. Across the bottom, you have tabs for the different options you can use for renaming your files or directories.
The first tab is the Case Change tab. Here you can change the names to all upper or lower case. You can also set only the first letter to uppercase or any letter after a defined character. Click the Preview button to view how your changes will look. Click the Rename button to rename the files or directories. If you decide that you don’t like the changes, you can click the Undo button.
Insert / Delete
The Insert and Delete tab allows you to delete or insert text in your file or directory names. With the insert, you can specify the text and position to insert the text. For the delete, you can specify the range of characters to delete. The Preview, Rename, and Undo buttons work in the same way as with the case change.
Replace / Remove
From the Replace / Remove tab, you can replace a string of text with another string of text or an empty string. You have two checkbox options for case sensitive and regular expressions. The topic of regular expressions is beyond the scope of this article, but the option is there for those who know how to use regular expressions. The action buttons work in the same manner as for the other options.
The Numerical tab is one of the most handy options. Specify the number you want to begin with, and by how much you want to increment the number for each file or directory. You have the option of inserting text before and after the number. If you are working with a certain file type, make sure you put the extension in the after block. You also have the choice of keeping the existing file name and placing it before or after the number.
In the menu Options > Filter, you can specify a filter for the files or folders. This is handy if you are working in a directory that contains several different types of files. As shown in the screen shot, you can filter just the JPG files in the directory.
With GPRename, you have many options for quickly renaming a group of files without having to remember a bunch of command line options. You can preview your changes, and if you don’t like the changes, you can undo them. The only drawback is you cannot combine the options from the different tabs. Only the options on the currently selected tab apply. However, if you need to apply options for more than one tab, you can rename from one tab, then apply options from another tab and rename again.
GPRename makes batch renaming changes quick and easy.