Batch renaming

Last updated

Batch renaming is a form of batch processing used to rename multiple computer files and folders in an automated fashion, in order to save time and reduce the amount of work involved. Some sort of software is required to do this. Such software can be more or less advanced, but most have the same basic functions.

Contents

Batch renaming can also be referred to as 'mass file renaming', rename 'en masse' and 'bulk renaming'.

Common functions

Most batch renamers share a basic set of functions to manipulate the filenames:

Some batch rename software can do more than just renaming filenames. Features include changing the dates of files and changing the file attributes (such as the write protected attribute).

Common uses

There are many situations where batch renaming software can be useful. Here is a list of some common uses:

Problems

There are a few problems to take in consideration when renaming a file list.
(→ means: renamed to)

file01 → file02 (file02 already exists in file-system)

file01 → file03
file02 → file03 (file03 is already used)

file01file02 (file02 already exists in file-system)
file02file03 (file03 already exists in file-system)
file03file01 (file01 already exists in file-system)

Two-pass renaming

Two-pass renaming uses a temporary filename (that doesn't exist in file-system) as shown below.
(→ means: renamed to)

file01 → file01_AAAAA
file02 → file02_AAAAB
file03 → file03_AAAAC

file01_AAAAA → file02
file02_AAAAB → file03
file03_AAAAC → file01

It solves the cycle renaming problem.

If this approach is to be used care should be taken not to exceed any filename length limits during the rename, and also that the temporary names do not clash with any existing files.

List of software

This is a list of notable batch renaming programs in the form of a comparison table.

NameLicense Windows Mac OS X Linux BSD/FreeBSD Unix-like
Advanced Renamer Free for non-commercial useYesNoNoNoNo
Ant Renamer [1] Free GNU General Public License v3YesNoNoNoNo
Aperture CommercialNoYesNoNoNo
Automator Free with OS X NoYesNoNoNo
File Rename Utility [2] FreeYesNoNoNoNo
Bulk Rename Utility [3] Free for non-commercial useYesNoNoNoNo
Bulky [4] AGPL3YesYesYesYesYes
Chrono Namer [5] FreeYesNoNoNoNo
CRAX Commander [6] CommercialNoYesNoNoNo
Easy File Renamer [7] CommercialYesNoNoNoNo
ExifRenamer [8] FreeNoYesNoNoNo
GNOME Commander Free, GNU General Public License Yes
(via Cygwin)
NoYesYesYes
GPRename Free, GNU General Public License v3NoNoYesYesYes
KRename Free, GNU General Public License v2NoNoYesYesYes
Métamorphose Free, GNU General Public License v3YesYesYesYesYes
AlgoLogic Batch File Renamer CommercialYesNoNoNoNo
ImBatch [9] Free for non-commercial useYesNoNoNoNo
ReNamer Lite(den4b) Free for non-commercial useYesNoNoNoNo
Thunar (bulk renamer) [10] Free, GNU General Public License v2+NoNoYesYesYes
Unreal Commander FreeYesNoNoNoNo
Vi move (vimv) [11] Free, GNU General Public License v3+Yes
(via Cygwin)
YesYesYesYes
Vifm [12] Free, GNU General Public License v2+YesYesYesYesYes
Namagic [13] CommercialNoYesNoNoNo
rename [14] Free, GPL NoYesYesYes
rnm [15] Free, GPL-3+NoYesYesYes

See also

Footnotes

  1. "Ant Renamer". antp.be.
  2. "Introduction – File Rename Utility". www.filerenameutility.co.uk. Archived from the original on 2020-08-03. Retrieved 2018-09-01.
  3. "Introduction – Bulk Rename Utility". www.bulkrenameutility.co.uk.
  4. "Introduction – Bulky". www.github.com. 15 May 2021.
  5. "Chrono Namer". chrononamer.com. Retrieved 2024-04-17.
  6. "CRAX Commander". crax.soft4u2.com.
  7. "Easy File Renamer Official. Easiest File Renamer, Mover & Copier". easyfilerenamer.com. Retrieved 2024-12-17.
  8. Robl, Stefan. "qdev.de – ExifRenamer". www.qdev.de.
  9. "ImBatch – The Best in Batch Image Processing – High Motion Software". www.highmotionsoftware.com.
  10. "xfce:thunar:bulk-renamer:start [Xfce Docs]". docs.xfce.org.
  11. Maeder, Ivan (26 April 2017). "vimv: Rename a list of files using a text editor" via GitHub.
  12. "Vifm Wiki". wiki.vifm.info. Retrieved 2024-04-17.
  13. "Namagic – Batch renaming reloaded for Mac OS X". www.namagicapp.com.
  14. "rename(1): Rename files – Linux man page". linux.die.net.
  15. Hamid, Md Jahidul (15 June 2017). "rnm: Unix tool: Bulk Rename Utility" via GitHub.

Related Research Articles

<span class="mw-page-title-main">Package manager</span> Software tools for handling software packages

A package manager or package-management system is a collection of software tools that automates the process of installing, upgrading, configuring, and removing computer programs for a computer in a consistent manner.

An 8.3 filename is one that obeys the filename convention used by CP/M and old versions of DOS and versions of Microsoft Windows prior to Windows 95 and Windows NT 3.5. It is also used in modern Microsoft operating systems as an alternate filename to the long filename, to provide compatibility with legacy programs. The filename convention is limited by the FAT file system. Similar 8.3 file naming schemes have also existed on earlier CP/M, TRS-80, Atari, and some Data General and Digital Equipment Corporation minicomputer operating systems.

Linux has several filesystem drivers for the File Allocation Table (FAT) filesystem format. These are commonly known by the names used in the mount command to invoke particular drivers in the kernel: msdos, vfat, and umsdos.

In computing, tar is a computer software utility for collecting many files into one archive file, often referred to as a tarball, for distribution or backup purposes. The name is derived from "tape archive", as it was originally developed to write data to sequential I/O devices with no file system of their own, such as devices that use magnetic tape. The archive data sets created by tar contain various file system parameters, such as name, timestamps, ownership, file-access permissions, and directory organization. POSIX abandoned tar in favor of pax, yet tar sees continued widespread use.

<span class="mw-page-title-main">Filename</span> Text string used to uniquely identify a computer file

A filename or file name is a name used to uniquely identify a computer file in a file system. Different file systems impose different restrictions on filename lengths.

<span class="mw-page-title-main">SystemRescue</span> Linux distribution

SystemRescue is a Linux distribution for x86-64 and IA-32 computers. The primary purpose of SystemRescue is to repair unbootable or otherwise damaged computer systems after a system crash. SystemRescue is not intended to be used as a permanent operating system. It runs from a Live CD, a USB flash drive or any type of hard drive. It was designed by a team led by François Dupoux, and is based on Arch Linux since version 6.0. Starting with version 6.0, it has systemd as its init system.

The archiver, also known simply as ar, is a Unix utility that maintains groups of files as a single archive file. Today, ar is generally used only to create and update static library files that the link editor or linker uses and for generating .deb packages for the Debian family; it can be used to create archives for any purpose, but has been largely replaced by tar for purposes other than static libraries. An implementation of ar is included as one of the GNU Binutils.

In computing, gettext is an internationalization and localization system commonly used for writing multilingual programs on Unix-like computer operating systems. One of the main benefits of gettext is that it separates programming from translating. The most commonly used implementation of gettext is GNU gettext, released by the GNU Project in 1995. The runtime library is libintl. gettext provides an option to use different strings for any number of plural forms of nouns, but this feature has no support for grammatical gender. The main filename extensions used by this system are .POT, .PO and .MO.

A versioning file system is any computer file system which allows a computer file to exist in several versions at the same time. Thus it is a form of revision control. Most common versioning file systems keep a number of old copies of the file. Some limit the number of changes per minute or per hour to avoid storing large numbers of trivial changes. Others instead take periodic snapshots whose contents can be accessed using methods similar as those for normal file access.

<span class="mw-page-title-main">Git</span> Distributed version control software system

Git is a distributed version control system that tracks versions of files. It is often used to control source code by programmers who are developing software collaboratively.

<span class="mw-page-title-main">SonicStage</span>

SonicStage is a discontinued software product from Sony that is used for managing portable devices when they are plugged into a computer running Microsoft Windows. It comprises a music player and library manager, similar to iTunes, Windows Media Player and RealPlayer. It is used to manage the library of ATRAC and MP3 recordings on a PC.

<span class="mw-page-title-main">PhotoRec</span> Open source data recovery software

PhotoRec is a free and open-source utility software for data recovery with text-based user interface using data carving techniques, designed to recover lost files from various digital camera memory, hard disk and CD-ROM. It can recover the files with more than 480 file extensions . It is also possible to add custom file signature to detect less known files.

The following tables describe attributes of notable version control and software configuration management (SCM) systems that can be used to compare and contrast the various systems.

A desktop environment is a collection of software designed to give functionality and a certain look and feel to an operating system.

<span class="mw-page-title-main">Xarchiver</span>

Xarchiver is a front-end to various command line archiving tools for Linux and BSD operating systems, designed to be independent of the desktop environment. It is the default archiving application of Xfce and LXDE. Deepin's archive manager is based on Xarchiver.

A batch file is a script file in DOS, OS/2 and Microsoft Windows. It consists of a series of commands to be executed by the command-line interpreter, stored in a plain text file. A batch file may contain any command the interpreter accepts interactively and use constructs that enable conditional branching and looping within the batch file, such as IF, FOR, and GOTO labels. The term "batch" is from batch processing, meaning "non-interactive execution", though a batch file might not process a batch of multiple data.

<span class="mw-page-title-main">KRename</span> Software

KRename is a KDE software that can be used for renaming multiple files and directories at one time. Many Linux distributions that use Plasma as the default desktop environment include the KRename software.

<span class="mw-page-title-main">Quod Libet (software)</span> Free and open source audio player

Quod Libet is a cross-platform free and open-source audio player, tag editor and library organizer. The main design philosophy is that the user knows how they want to organize their music best; the software is therefore built to be fully customizable and extensible using regular expressions and boolean logic. Quod Libet is based on GTK and written in Python, and uses the Mutagen tagging library.

<span class="mw-page-title-main">Leafpad</span> Lightweight text editor

Leafpad is a free and open-source graphical text editor for Linux, Berkeley Software Distribution (BSD), and Maemo that is similar to the Microsoft Windows program Notepad. Created with the focus of being a lightweight text editor with minimal dependencies, it is designed to be simple-to-use and easy-to-compile.

<span class="mw-page-title-main">Puddletag</span> Tag editor for Unix-like operating systems

Puddletag is a graphical audio file metadata editor ("tagger") for Unix-like operating systems.