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

4
votes
1answer
40 views

Recursive directory renaming

I need to recursively append the same suffix to all sub-directory names in a directory. What is a simple and safe way to do this?
12
votes
7answers
601 views

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 ...
0
votes
2answers
32 views

Rename command can't handle [ and ( characters?

I have a lot of files with [] characters in them and I wanted to remove them with the following command: rename 's/[xy]/xy/' *
3
votes
4answers
261 views

how to change file extensions in a directory [closed]

I have many files in a directory having extension. .text(2) .text(1) I want to remove the numbers from extension and output should be like .text .text Can anyone please help me with the shell ...
3
votes
4answers
256 views

Append something to files that don't end with “]” recursively

I am trying to append [Full] to all files that don't end with ] in all subdirectories recursively. Example: Untold Story.wav should be renamed to Untold Story [Full].wav Untold Story ...
0
votes
2answers
55 views

Renaming a full anime series

I've this Naruto anime downloaded on my pc. They are named like "NARUTO 50 — The Fifth Gate- A Splendid Ninja is Born_low.mp4". I want to simply batch rename them to something like this "Naruto_50". ...
0
votes
2answers
83 views

Renaming files with a prefix and suffix in folders of varying depths

I have many images of varying extensions (jpeg,jpg,png) contained in many different directories, many of which my be contained in other folders for organizing. Such as: Folder 1/ Folder A/ ...
0
votes
3answers
104 views

Batch rename, add extra “.” character at position 3 in filename, recursively

I've been struggling to make this work but I am not very good with regex. This is what I tried to do and it didn't work (after 50 minutes, still going on with no visible change): while IFS= read -r ...
2
votes
3answers
255 views

Multiple File Extension Rename with single command [duplicate]

I received some important files via mail. There are about 150 files like these. The extensions of the files are named as zip1,zip2,zip3, zip_ etc. I just want to change the extension of these files ...
1
vote
1answer
332 views

Use metaflac to rename .flac files from flac tags recursively

I am trying to rename a bunch of songs using metaflac (sudo apt-get install flac) from their respective tags recursively, because I'm dealing with an unknown number of subfolders. Output should be: ...
3
votes
2answers
292 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. ...
0
votes
1answer
149 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+ ...
9
votes
2answers
306 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, ...
4
votes
2answers
336 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 ...
3
votes
3answers
145 views

Batch rename using a .csv

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. ...
1
vote
2answers
125 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
0answers
28 views

Rename and Resize Photos Script

I want to have an automated script run every day, it renames my photos to creation date and location, something like this 2014-09-Paris-001.jpg 2014-09-Paris-002.jpg etcetera and then resize a copy ...
0
votes
2answers
133 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 ...
1
vote
1answer
66 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 ...
2
votes
3answers
552 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 ...
3
votes
3answers
7k 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. ...
0
votes
2answers
294 views

How can I bulk-add a file's creation date to the filename?

I have generated a time-lapse series of images and have named them sequentially {0000..9999}.jpg This isn't great for browsing the whole set as it's harder to tell when a given image was taken from ...
1
vote
1answer
146 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 ...
0
votes
3answers
72 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 ...
5
votes
5answers
851 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 ...
3
votes
5answers
4k 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 ...
2
votes
1answer
347 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 ...
1
vote
4answers
419 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
2answers
1k 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': ...
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, ...
8
votes
5answers
1k 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 ...
2
votes
0answers
584 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 ...
4
votes
1answer
132 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
3answers
173 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 ...
5
votes
1answer
2k 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: ...
2
votes
1answer
766 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 ...
1
vote
3answers
373 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
1answer
70 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
0
votes
3answers
99 views

How to recursive regexp rename double dashes

I am using Wordpress Eazyest gallery to create 2000 galleries. Some files have double or triple dashes in filenames. For instance: abc---def.jpg These files are uploaded via FTP. On Wordpress admin ...
3
votes
2answers
2k 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 ...
2
votes
2answers
106 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 ...
1
vote
1answer
278 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 ...
3
votes
4answers
4k 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 ...
0
votes
2answers
761 views

Need help mass renaming files using command line that contain a certain string

I have about 200 files that are named like this: 01_-_Back_Alley_Uproar.avi 01_-_Bad_Luck_Cat.avi 01_-_Beep_Beep.avi 02_-_Broomstick_Bunny.avi 02_-_Bunker_Hill.avi and so on. I would like to ...
1
vote
1answer
47 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 ...
3
votes
2answers
685 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 ...
0
votes
2answers
158 views

Software to file handling operations

Is there some tool to Ubuntu like Filerfrog, capable to perform tasks like: Delete Empty Files\Folders Copy Path to Clipboard Invert selection Split and Join folders List of Files inside a folder ...
0
votes
1answer
259 views

Having issues renaming file extensions of multiple files at once through terminal. “Rename” comm, does not seem to work

I have a lot of video files that are in mixed formats (.avi, .mkv, .wmv) that I need to change to ".mp4". All of the video files are within one main directory, but also flow into sub directories under ...
-1
votes
1answer
202 views

Complicated batch rename file problem

I did find the program pyRenamer, but I don't seem to understand it. I have hundreds of files with name like main.php?g2_view=core.DownloadItem&g2_itemId=6027&g2_serialNumber=3 here ...
3
votes
3answers
4k 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 ...