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

1
vote
2answers
50 views

How to copy files from multiple directories, adding the parent folder's name to the filename?

I have been looking to all possible answers about "copying file from multiple directories to one single directory" but I cannot find my answer. I need something slightly more specific for my database ...
4
votes
4answers
680 views

How to Rename Multiple Files With Their First 10 Characters?

I am having a problem to rename multiple files by replacing the name by their first 10 characters of their old name. I tried to find the solution in internet but I didn't find the answers. Example: ...
3
votes
1answer
25 views

Undot all files and folders in an external disk

I have thousands of doted files, folders and subfolders in an external hard disk drive. I want to recover all pictures within these folders. I want to undot them all to easily navigate this pictures. ...
1
vote
2answers
74 views

Mass renaming files with special format

I want to rename several hundred files whose names are formatted as follows: A Study in Scarlet - Arthur Conan Doyle.mobi Anvil of Stars - Greg Bear.mobi City and the Stars, The - Arthur C. Clarke....
3
votes
0answers
98 views

How to automatize media renaming in kodi

I get media files which are not indexed by kodi (running on Ubuntu 15.10) - they need to be renamed first (and then they get indexed and fully processed). I did not find any built-in solution in kodi ...
3
votes
2answers
128 views

adding zero to specific location of file names

I have a directory consists of several files. Files name are as follows; 0102920.05o 0203920.05o 0304920.05o .... I need to add "0" for all files after the first 4 numbers like; 01020920.05o ...
2
votes
1answer
70 views

How to batch rename JPEG files to image date, adding a count that resets for each day?

I'm using pyrenamer with my photo collection and it works great except for one issue. I want it to rename photos by their date taken metadata, with a three-digit number at the end. Each folder in my ...
0
votes
0answers
34 views

How do I use the mmv utility to move an arbitrary number of files?

I have a folder with too many files, I want to move some of the files to a subdirectory -- without a script. How can I move, or copy, not all files, but the only the first n number of files? For ...
0
votes
1answer
71 views

How to add KRename to context menu

How do I add KRename to the context menu so I can select files and use right click to rename them from the contextual pop up? I want to do this to make bulk or batch renaming of files faster so I don'...
1
vote
3answers
70 views

Add the folder's name to all `.bin` files in that folder

I have spent almost one day and a half searching for this but couldn't find an answer. I am looking to add the folder's name as a prefix to all files ending with .bin in that folder. So, if the ...
0
votes
2answers
62 views

find all '&' characters in files and folders

i have a Ubuntu server with samba file sharing. i want to find all files and folders that have '&' in their name an replace it with 'and'. can any one help me on this situation. thank you all i ...
1
vote
1answer
35 views

Rename files in a directory based off of the text contained within a text file

I am trying to rename about 20 files in a directory based off of what a text file contains. I have been searching around and cant really find anything that really describes the process. All the ...
0
votes
2answers
82 views

How do I remove certain characters before or after a certain number from a list of files in terminal?

Suppose there is a list of files with the following pattern: ABC2011DEFG.txt What command should I use to remove characters before or after the number in between while keeping the file extension? ...
0
votes
2answers
85 views

Replace part of filename with string in subdirectories and current directory

I want to be able to do this: rename string1 to string3 and add string2 to the beginning. Sth like Fish renamed to Great_Bear if string Fish is found and Great_ = string2. So far I have this: ls ...
3
votes
0answers
24 views

How to batch rename linked files [duplicate]

I created and linked 50+ files but now they have in the name Link to xyz So what I want is to remove Link to from the all 50+ files names
0
votes
1answer
104 views

how to rename files in multiple folder without renaming directories?

I have a bunch of directories (e.g., drawable-hdmi, drawable-en-hdmi, drawable-en-xhdmi) and so on for different resolutions and localisations. each of them contain just one file with random name. ...
1
vote
1answer
535 views

Bash Script: Batch file rename to remove/change all characters illegal under a windows filesystem

I need an assist here, got a project going where we need to modify file & folder names within a specific directory in order to remove or replace any and all characters which would be considered ...
0
votes
0answers
26 views

Rename list of files: add trailing zeroes to numeric file name [duplicate]

I have a list of many files all names consist of a number (up to 4 digits) and any file extension like .txt or .gif. But the numeric part has only as many digits as needed, e.g. 42.txt, but I want ...
5
votes
2answers
225 views

question about using the command rename

I use the command rename to rename multiple files at the same time as follow but how i can make more than one change in the same command i.e. change 1 to A and change 2 to B * UPDATE 1 * i used ...
1
vote
1answer
71 views

Can you change multiple dissimilar file names?

I am trying to rename a lot of music files. The files contain spaces and capitals and whatnot and I want to replace the spaces with underscores and remove all capital letters. Is there a way to do ...
1
vote
1answer
87 views

Sequential renaming of files

I found an answer for zero-padding numerical filenames which works fine for renaming filenames as follows : 1.jpg > 00001.jpg 2.jpg > 00002.jpg . . . 9.jpg > 00009.jpg That uses the ...
2
votes
1answer
222 views

batch rename zip files based on contained file names

I've got a directory with 15000 zip files. I'd like to rename all files which, when unzipped, contain a file of the form YYYYMMDD_IPC.csv where YYYYMMDD happens to be a date but for the purposes of ...
5
votes
1answer
316 views

How to decrease the file name by 1 in ubuntu

I have around 200 .png files in my folder, naming like - 02.png 03.png 04.png ... 201.png As you can see I dont have 01.png so I want to rename the all files decreasing by one, to make it like - ...
-3
votes
3answers
438 views

Rename multiple files in terminal [duplicate]

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 ...
1
vote
1answer
142 views

How to rename files in a directory by adding a value to current name?

I have multiple files in a directory like 1.jpg, 2.jpg, 15.jpg etc. I want to add a specific value to these names -for eg: 10, so that the files are renamed to 11.jpg, 12.jpg, 25.jpg etc. Is there ...
0
votes
1answer
193 views

Rename all .htaccess files on server

On my localhost I have enabled htaccess evaluation in apache2.conf and now I keep getting 500 (Internal Server Error). I think I have some faulty .htaccess files that not being evaluated caused no ...
0
votes
1answer
49 views

renaming files script error

I wrote code to change the name of bulk of file it should replace spaces with underscores and lowercase all the file name .. this is the code for file in *; do mv "$file" `echo $file | sed -e 's/ ...
2
votes
1answer
352 views

Rename hundreds of directories [duplicate]

I have more than hundred directories named SP_[number]_date. I'd like to rename all to just SP_[number]. I can only figure out how to do that by mv SP_1_date SP_1 but that will take ages. Can I ...
4
votes
1answer
59 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
1k 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
39 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/' *
4
votes
4answers
301 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
329 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 [Instrumental]....
0
votes
2answers
123 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". ...
1
vote
2answers
212 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/ ...
1
vote
3answers
374 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
670 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
5answers
1k 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
855 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
483 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
445 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
689 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
202 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
360 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
2answers
245 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
92 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
747 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 ...
5
votes
6answers
18k 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
687 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
248 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 ...