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

3
votes
0answers
32 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
124 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
58 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
29 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
42 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 ...
1
vote
3answers
54 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
55 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
31 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
77 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
76 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
61 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
376 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
220 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
64 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 ...
0
votes
1answer
79 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
194 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
304 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
206 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
128 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
142 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
46 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
350 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
55 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
914 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
38 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
295 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
315 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
112 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
182 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
295 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
620 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
753 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
406 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
404 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
610 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
193 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
337 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
222 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
90 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
700 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 ...
4
votes
6answers
16k 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. ...
4
votes
2answers
627 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
232 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
88 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
1k 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 ...
4
votes
5answers
6k 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
623 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 ...