Questions tagged [batch-rename]

Batch renaming is a form of batch processing used to rename multiple computer files and folders in an automated fashion

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. Batch renaming software exists for most operating systems.

ref: From Wikipedia, the free encyclopedia

234 questions
95
votes
9 answers

How do I change extension of multiple files recursively from the command line?

I have many files with .abc extension and want to change them to .edefg How to do this from command line ? I have a root folder with many sub-folders, so the solution should work recursively.
tommyk
  • 4,556
66
votes
3 answers

Pattern based, batch file rename in terminal

I need to rename the following: file_001_loremipsum.png file_002_dolor.png file_003_sit.png file_004_amet.png file_105_randomness.png into upl_loremipsum.png upl_dolor.png upl_sit.png upl_amet.png upl_randomness.png How do I make it happen with…
44
votes
16 answers

How can I rename many files at once?

I need to rename a bunch of files in order to fix their sort order, therefore I need to be able to do a sort of "find and replace" so I can replace chunks of the filenames at a time. What tools should I use? I prefer GUI but a command line tool…
Jorge Castro
  • 73,717
42
votes
8 answers

Bulk rename files

I have a number of…
29
votes
9 answers

Renaming hundreds of files at once for proper sorting

I have a ton of files, all named stuff like 1.jpg, 2.jpg, 3.jpg, and so on up to 1439.jpg, however, I have a problem with one of my projects and alphabetizing. It will usually go in the order 1.jpg, 10.jpg, 11.jpg and so on. What I need is some way…
Kaz Wolfe
  • 34,680
25
votes
5 answers

Rename returns "bareword not allowed" when trying to lowercase parts of multiple filenames

I have two files in a folder on my Ubuntu 16.04: a1.dat b1.DAT I want to rename b1.DAT to b1.dat so I would have following files as a result in the folder: a1.dat b1.dat I tried (unsuccessfully): $ rename *.DAT *.dat Bareword "b1" not allowed…
Samo
  • 633
19
votes
3 answers

Rename multiple files in terminal

I have 40 mp4 files in a folder. Every file starts with video_. Every file is of format video_*.mp4. I need to rename all the files with video_ removed from the begining of every file. How can I do that from terminal?
kashish
  • 1,342
19
votes
5 answers

Batch rename files to lowercase

Is there a way to rename all files in a directory to lowercase|uppercase? I am looking for a oneliner command. I loved TotalCommander's Alt + F7, now I need that functionality in the Terminal.
18
votes
7 answers

An Ubuntu/Linux alternative of Bulk Rename Utility for Windows?

I have only spent 5 months with Ubuntu and it has been an awesome experience, I hardly boot into Windows now, but there are some things I miss, like the Bulk Rename Utility I used to have in Windows. I use the program a lot when I boot into Windows…
Feyisayo Sonubi
  • 433
  • 1
  • 5
  • 12
16
votes
9 answers

Renaming large number of image files with bash

I need to rename approx. 70,000 files. For example: From sb_606_HBO_DPM_0089000 to sb_606_dpm_0089000 etc. The number range goes from 0089000 to 0163022. It's only the first part of the name that needs to change. all the files are in a single…
rich
  • 179
15
votes
7 answers

How to rename multiple files sequentially from command line?

How to rename file as below AS1100801000002.RAW7AGS AS1100801001008.RAW7AH4 AS1100801002001.RAW7AH9 AS1100801003002.RAW7AHE AS1100801004009.RAW7AHT AS1100801005002.RAW7AHY AS1100801010002.RAW7AJ3 to new…
kamaruz85
  • 151
13
votes
7 answers

Renaming files to add a suffix

I need a command to rename all files in the current working directory, in a way that the new filename will be the same as the old, but including a suffix corresponding to the number of lines of the original files (e.g. if the file f has 10 lines…
Martin Yeboah
  • 241
  • 4
  • 11
13
votes
1 answer

How to batch rename files (images) based on CSV file

What I have and want to achieve: There are thousands of images in one folder. I have a CSV file with following columns: A: original name B: renamed name A typical row looks like this: "original-1.jpg","renamed-1.jpg" …
take2
  • 347
13
votes
5 answers

How To Rename Multiple Photos and Videos Based on EXIF Data?

I often import photos and videos (mostly having JPG and MOV extensions) from digital cameras and tablets to my PC, and I would ideally like to see them sorted according to the dates and times they were taken already present in their EXIF data. And…
Sadi
  • 11,074
13
votes
6 answers

Rename multiple files at the same time

I have around 180 files with the same structure: 000-aaaaaaaa.txt. Regular expression for a file name: /^[0-9]{3}\-[a-zA-Z]+$/gi (3 digits + - + letters + .txt). I would like to cut of the numeral part and - in each file name For…
Max Mikhalchuk
  • 133
  • 1
  • 7
1
2 3
15 16