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

learn more… | top users | synonyms

25
votes
4answers
38k views

How to change extension of multiple files from command line?

I have many files with .abc extension and want to change them to .edefg How to do this from command line ? EDIT: I have a root folder with many sub-folders, so the solution should work -r ...
15
votes
6answers
2k views

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, ...
13
votes
2answers
2k views

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
9
votes
2answers
6k views

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 ...
9
votes
2answers
207 views

Batch Rename Files in Folder

How can I strip out some text from filenames in a folder? I'm currently attempting: rename s/"NEWER_(.*?)"//g * But nothing it getting renamed I have a parent folder, with a bunch of sub-folders, ...
8
votes
5answers
724 views

Append text to file names which do not contain a dot

Given the following files: english_api english_overview style.css I want to get: english_api.html english_overview.html style.css In other words how to append a text to all files that do Not ...
5
votes
5answers
620 views

How do I add zero padding to filenames that already have numbers in them? [duplicate]

I used Sound Juicer to rip a CD of audio for a language learning book so that I could listen to them on my Android. However, Sound Juicer seems to only have the option of numbering files without ...
5
votes
4answers
2k views

How to rename files with count?

I have a directory like this: randomized_quad015.png randomized_quad030.png randomized_quad045.png randomized_quad060.png randomized_quad075.png randomized_quad090.png randomized_quad1005.png ...
5
votes
1answer
735 views

A program/command to help translate multiple file names

I have hundreds of files with different names that I want to translate into a different language. Is there an application/CLI action that would allow me to copy all this names as in a list/table and ...
5
votes
1answer
1k views

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: ...
4
votes
2answers
221 views

Batch/Multi rename only files with a specific number range

I have a situation where I have the following: file01.ext . . . file99.ext file100.ext . . . And I want to (using rename ) insert the '0' for the files 01-99 (so that they become 000-099) but not ...
4
votes
3answers
1k views

Batch rename directories?

I have several directories with the format of the year, month, and day followed by a description of the event. For example: "2012 05 26 - EventA", "2012 05 26 - EventB". What I would like to do is ...
4
votes
1answer
621 views

How can I use GPRename's regex feature to reinsert the matched-group into the 'replace'?

I've been using GPRename to batch-rename files; this is rather more efficient than individually correcting each file, but still seems to be less efficient than it might be, primarily because either I ...
4
votes
1answer
117 views

Move/Rename a lot of files with specific file size

I recovered a lot of pictures (1000+) from a bad SD Card. All except 75 which seems to be 'broken'. I ran a program to get all the pictures reading at a lower level and I found out I got all the ...
3
votes
5answers
3k views

How to mass add file extension?

My photo importer moved files from my camera and renamed them, but I forgot to specify that it should keep the file extension. So I have several folders with hundreds of JPG & AVI files that are ...
3
votes
3answers
3k views

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. ...
3
votes
4answers
3k views

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 ...
3
votes
3answers
3k views

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 ...
3
votes
3answers
125 views

Bulk/Batch-rename files with different endings (NOT change the endings)

My Problem, that I've got a folder with many different files like: xxxxxxxxx.avi yyyyyyy.jpg zzz.txt And I want to rename them into 001.avi 002.jpg 003.txt It's not working with ...
3
votes
2answers
90 views

Recursively rename all files and folders to Title Case from terminal

I am a newbie and I have searched everywhere for this, I have also tried combining a lowercase renaming command with some regex to get Title Case instead of lowercase but I wasn't very successful. ...
3
votes
1answer
95 views

Batch rename using a list

I have 700 folders that I want to rename. All these folders together are located in one single folder. I know the locations of all the folders on disk. I also have the folder names in a data sheet. ...
3
votes
2answers
1k views

Remove last three characters from all files in a directory

I have a directory with about 10 files and I want to remove the last three characters from the names of all of these files. Anyone know a terminal command that can do this? And separately, how would ...
3
votes
3answers
372 views

How to rename a batch of files with an incrementing number in the file name?

I want to rename batch of files named Example1.java, Example2.java to Q1.java, Q2.java at once. Is this possible?
3
votes
0answers
42 views

Need a graphical renaming tool which can rename files recursively [duplicate]

Possible Duplicate: What mass file renaming tools are available? ATM I am forced to use freeware in Windows to rename SOME Linux data files. Linux also creates files like "Filename.ext" as ...
2
votes
3answers
418 views

Batch rename — multiple image types

I have a large number of images that I copied from a failing external hard drive. All of the images are fine and have no corruption, but oddly a large number of them are now missing extensions. The ...
2
votes
1answer
247 views

How to trim file name containing extra characters using shell commands

I have a list of thousand files which have filenames with .txt.txt appended twice, I want to remove the second .txt from the file. for eg. File1.txt.txt is the original file. I want to rename it to ...
2
votes
3answers
339 views

Trying to do a batch rename, can't figure out the proper RegEx

I'm trying to rename my movie collection. All of the files are currently named using dots instead of spaces, i.e. Men.in.Black.avi. I want to replace all of the dots with spaces which isn't terribly ...
2
votes
1answer
614 views

How can I automatically change spaces to underscores in the file save dialog box?

I am often saving documents from my Windows-using coworkers, and the filenames usually contain spaces. For example, I'm always renaming Important CEO Spreadsheet v2.xls to... ...
2
votes
1answer
492 views

Using text list to batch-rename files

Suppose I have a folder with some 20 files (say, photos I took on a trip), and I want to rename them in one go, only there isn't any specific Perl expression I want to use (for example, if I'd like to ...
2
votes
1answer
3k views

How do I batch rename a specific file inside multiple zip archives via the command line?

I have about 200+ shareware files in zip format that each contain a file called "FILE_ID.DIZ". I need to know how to rename each instance to lowercase "file_id.diz" without doing it manually - I've ...
2
votes
1answer
666 views

Recursively copy (and rename) files to their own same directory with another name

This Q and A will cover a very specific yet common case: given many files with the same or similar name each in its own directory, create a copy of each of them in their original directory but with ...
2
votes
2answers
100 views

Removing a string of files with rename

I have been trying to batch rename a bunch of files so that they are consistent and fit within the name structure that I have come up with. For instance,I am renaming comics, and so I have a directory ...
2
votes
0answers
414 views

What is a good GUI file renamer that takes files from command line URIs?

Looking for a GUI mass file renamer that can be run from a selection of files in Nemo. Nemo has a built-in placeholder for a mass rename tool so you can provide the name of the app to run to rename ...
1
vote
4answers
226 views

Change directory structure from /YEAR/MONTH/DAY/ to /YEAR-MONTH-DAY

I need to change my directory structure for my photos from /YEAR/MONTH/DAY/ to /YEAR-MONTH-DAY I know this can sort of be done with exiftool, but it will only work on files containing EXIF-tags, and ...
1
vote
1answer
835 views

rename files with a shift in numbers

I want to rename a bunch of files which are called IMG0189.jpeg IMG0190.jpeg etc to something like IMG01.jpeg IMG02.jpeg etc respectively. Are there any way doing this using rename command? Or ...
1
vote
2answers
559 views

How can I batch rename files with terminal

If I have a set of files like: 1-3-Image Export-08_s3c1.jpg and I would like to rename the first part to look something like this, by adding and replacing the first part with 'G2_NR2_replicate2': ...
1
vote
1answer
78 views

batch rename with id shifting?

I need to batch rename bunch of files with id in name, adding a constant number to id <id>-xxx.txt => <id+shift>-yyy.txt Any ideas how to make it? Some awk maybe?
1
vote
1answer
52 views

Batch renaming files from the commandline [closed]

I have files with the following names: 1_shahlirtsb_p.mp3_103899.mp3 2_shahlirtsb_p.mp3_103898.mp3 3_shahlirtsb_p.mp3_103897.mp3 4_shahlirtsb_p.mp3_103896.mp3 5_shahlirtsb_p.mp3_103895.mp3 ...
1
vote
1answer
95 views

Ubuntu rename command regex not working

I'm trying to use the rename command to rename a bunch of images in a folder. I have this list of images, image.php?x=10 image.php?x=25 image.php?x=50 image.php?x=75 I'm trying to rename them to ...
1
vote
3answers
272 views

I cannot rename files in bulk using ubuntu's rename feature

I cannot rename files in bulk using ubuntu's rename feature. The files are on a NTFS partition. I want to rename files that look like this: whatever pic george.jpg tacoma narrows bridge.jpg green ...
1
vote
2answers
1k views

How to batch rename files (.jpg) randomly?

Ok, so I have a digital photo frame that I have, and view my photos from a USB. Everything works fine, however, there is no way to display the pictures randomly. So, I have to watch my pictures in ...
1
vote
1answer
242 views

Easier way to rename batch files Like Windows

Ok Im finding all the rename options on this site and around the entire internet a hassle I for one would like to rename batch files like in windows where I put in the name and it renames all files ...
1
vote
1answer
46 views

Multiple item name copying

So I've got a folder with 2n files. n them are .foo files, n of them .bar files. I want to copy the filenames of the .foo files (which are all different) to the .bar files ordered alphabetically. The ...
0
votes
3answers
58 views

Batch Rename Using Regex but Mainaining Some Substring

I made a lot of research before I put this question. I found a different links to do batch rename using regex like this and other similars: *Pattern based, batch file rename in terminal My problem ...
0
votes
2answers
97 views

How Can I Remove All Characters After a Certain Character Appears Twice Using Bash Scripting?

I have multiple files in a directory over 200 which I would like to rename by removing all other characters including the character and the rest after it appears twice. Example: One of the files in ...
0
votes
1answer
239 views

How to batch rename files but not directories?

I have lots of files that need an extension appended to them but they are in a directory with lots of subdirectories. Currently the files have no extension at all. How would I rename just the files ...
0
votes
2answers
2k views

How would I batch rename a lot of files using command-line?

I have a problem which I am unable to solve: I need to rename a great dump of files using patterns. I tried using this, but I always get an error. I have a folder, inside with a lot of files. Running ...
0
votes
1answer
43 views

How to rename a movie file by using its internal name attribute?

I had to recover a bunch of movie files from my external HDD due to filesystem corruption and used photorec to do so. Now all my files have random names like f00000.avi. We are talking about 1000+ ...
0
votes
2answers
58 views

multiple file rename based on modification date

I have looked on the web on multiple sites but I can't seem to find a solution and the man page is not clear (I'm a beginner with the CLI). This is my problem: I have about 200 files in a directory, ...
0
votes
1answer
63 views

How to batch rename

I want to batch rename files I have a folder and in that folder there are files that I want to change name to 1,2,3,4,5,6 etc.. Thank you for your time