Ubuntu – Bulk rename files

batch-renamecommand line

I have a number of files:

I want to rename with this format:

It needs to remove the _ in timestamp and add the _TIMING.

Best Answer

Install renameutils and use qmv with your favorite text editor.

qmv loads all names in your editor and when you save and close it applies your changes to the actual files. If the changes are inconsistent (e.g. two files get the same name) it will abort without touching anything. It also handles circular renames correctly.

I usually do:

$ qmv -f do

so that it shows just one column of names (do: destination-only). Here's how it looks:


If you combine it with the multiple cursors of SublimeText, Atom or Visual Studio Code, it makes a very nice and powerful tool for bulk renaming. For instance, for Atom, you would do EDITOR="atom -w" qmv -f do.