Use GPRename to Quickly Rename a Group of Files

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.

Case Change

case_change

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

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

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.

Numerical

numerical

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.

Filtering Names

options-filter

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.

Filter

Conclusion

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.

Advertisements

3 comments on “Use GPRename to Quickly Rename a Group of Files

  1. Francesco says:

    Hi There, is it possible to use gprename via terminal ? I have a file server based on ubuntu server with no interface. Thank you.

    • E E Perry says:

      gprename is a GUI program so it requires a GUI. If you have access to your server through another computer with a GUI, then you can use it to rename the files on your server. The other option is to install a GUI on your server.

  2. joy says:

    how to rename files in a pendrive?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s