Questions tagged [batch-rename]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
26 views

Dolphin rename files in *descending* order?

Is it possible to have Dolphin rename files in descending order? Here we see the rename in ascending order: https://userbase.kde.org/Dolphin/Batch_Rename
4
votes
4answers
625 views

Swapping one character in filename with another

I have a file that has the name a_b-c-d-e-f.txt. I would like to take that current name and swap the dashes and underscores so that it becomes a-b_c_d_e_f.txt. My intuition tells me to try rename or ...
1
vote
1answer
339 views

Rename multiple files with same digits after decimal

I have multiple files with names vort-0.01.txt, vort-0.02.txt, ... vort-0.1.txt ... vort-0.2.txt ... etc. I want to rename each files with two decimal points i.e. I want to change the name of vort-0.1....
0
votes
1answer
238 views

Bash Script to rename or remove punctuation (? !) & string in filenames of files, subdirectories and directories recursively in Ubuntu 16.04

I am new to using Bash scripting, but I have discovered a few solutions that use it to either remove or rename the filename for files within directories and sub-directories in Ubuntu 16.04. For ...
1
vote
1answer
215 views

Batch rename of video files after finding its resolution height

Trying my first script, not going smoothly. Maybe someone knows of a program or can help point in the right direction. I want to sequentially find a large archive of video files resolutions - height ...
0
votes
1answer
238 views

How to Bulk / Batch Rename in Terminal? [duplicate]

I Have Question, How to bulk / batch rename in terminal ? i use ubuntu 16.04 64 bit example i have 5 file (GreatSoftware) AVG Anvitirus - 1.exe (GreatSoftware) Windows Media Payer - 2.exe (...
3
votes
2answers
163 views

How do you rename files from one incrementing pattern to another?

I have a group of files that are named as follows: 048. banana.mkv 049. apple.mkv 050. mango.mkv 051. pear.mkv 052. grape.mkv I need to rename those files with the following naming convention 01. ...
0
votes
2answers
62 views

Rename files from their content

I have thousands of txt files with a .pdbqt extension in a directory named 100000cpds_ligand_00001.pdbqt, 100000cpds_ligand_00002.pdbqt, 100000cpds_ligand_*****.pdbqt and would like to rename them ...
3
votes
3answers
225 views

renaming file and deleting from last

what is the "command line" "to remove certain character from the end of a file name . For example, subash.jpg.jpg. I want to remove ".jpg" from last. i have been having problem "renaming the files".
0
votes
1answer
230 views

How to rename the output file with variable name?

I want to run a script 4000 time, every time it produces an output file named min1.gro. Each time it will replace the previous version. I want to name the output with a different name for the 4000 ...
1
vote
1answer
448 views

Rename files of the same name in multiple subdirectories

I have multiple directories with unique identifying names. Within each of these are further identicle subdirectories generated by an automated analysis software. Within one of these subdirectories is ...
0
votes
2answers
39 views

Change duplicated extension of multiple files recursively from the command line

My question is almost the same as those, however, its solution doesn't work my for my case. I'd like to remove duplicated extension (in my case .zip.zip) and have only one (i.e. .zip). I tried: ...
2
votes
1answer
69 views

Specify starting number when renaming multiple files

I would like to rename multiple files with automatic numbering order. I can do this where the numbering starts at 0 (see screenshot) but I would like to specify the starting number. Is there a way to ...
-1
votes
1answer
767 views

How to remove unwanted text from file name using command line?

I have files needing renaming I want to create a .sh script for it, just a command line. I need to remove the unwanted things such as www.TamilRockers.ws, UNTOUCHED, ESubs, etc. I would like a .sh ...
2
votes
3answers
204 views

Replace a folder name using a contained file name

I have a thousand or so folders having random names. Every folder has at least one file with avi, mkv,srt or mp4 extension. I intend to replace the random generated folder name by the first file name (...
9
votes
6answers
4k views

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 ...
0
votes
1answer
40 views

Bash : rename files (1 per folder) with folder's name

I have a folder with 101 subfolders. Here is a tree with the first ones to visualize the thing: ├── 001 - Implacablement votre │   └── Implacablement votre - Sapir.epub ├── 002 - Savoir, c'est mourir ...
2
votes
1answer
98 views

How to save multiple image attachments from Gmail using specific name

I have an email (Gmail) with multiple image attachments that I would like to save to one of my folders. I know you can do "Download all attachments" using Gmail, but I would like to give my images a ...
5
votes
1answer
278 views

Swap parts of filenames

Problem I have thousands folders, which names are structured like: firstName_lastName_date for which I want to swap the two first parts using the underscore _ as a separator in order to end up with: ...
2
votes
1answer
902 views

Find and replace folder and file names with Windows incompatible characters

My Ubuntu (18.04) drive is synchronised with a Windows drive. Some of my folder and file names in Ubuntu contains characters not allowed in Windows and this causes issues during sync. I want to find ...
0
votes
1answer
169 views

Copy all files from subdirectories and subsubdirectories to main directory with modifying file names by adding prefix of all parent directories

Following these two posts: Move files to parent directory, prefixing file name with former subdirectory name recursively add directory name to file name I would like to do the same but with copying ...
1
vote
1answer
77 views

adjust character order of file names (batch)

I have several files named by date and I am trying to make a batch change in naming they look like this: dd-mm-yyyy or dd.mm.yyyy or ddjanyyyy and I'm trying to standardize everyone like this: ...
2
votes
1answer
99 views

rename the last number-string [duplicate]

How to rename the last number-string it finds with a zero-padded version and leave the rest of the filename alone? AAA 2000-01-03 bbb 2001-03-04 page_1.pdf To: AAA 2000-01-03 bbb 2001-03-04 ...
1
vote
1answer
2k views

How do I remove special characters from file name with a command?

I have a few files that I want to rename and want to accomplish this in the command line. I need to remove these characters "¡¿" from the beginning of the file names. From this: ¡Tú_la_llevas!-2018....
-1
votes
2answers
94 views

Finding the image file name and renaming with parent folder names

I have this file structure. I wanted to use the image filename appended with the parent folder names. Before: ├── ak │   ├── adak │   │   ├── Hello\ World456 │   │   ├── cup-printing │   │   │   └─...
1
vote
1answer
83 views

How to rename multiple files by year to year basis in bash

I have multiple files named as DOWN_1981_1.31.nc DOWN_1982_1.31.nc ... DOWN_2010_1.31.nc I want to rename them to DOWN_2040_1.31.nc DOWN_2040_1.31.nc DOWN_2041_1.31.nc ... DOWN_2069_1.31.nc How to ...
1
vote
1answer
85 views

How can I rename image file based on colors in the image?

For example: If I have a 2x2-pixel image. In the image: 3 pixels are red. 1 pixel is green. 0 pixels are blue. I want to rename the image to 3_1_0.
0
votes
3answers
387 views

Bulk change file extensions [duplicate]

I have a folder with ~30 files. The are already BitTorrent metafiles that lack a .torrent suffix. I want to change all those files to .torrent files. How would I do that? In windows it was as easy as ...
2
votes
1answer
145 views

Easy way to add a zero to the filename if it need it

With big help from here, I have soon converted all my jpg files to gif (thanks again ALOT) but when I was looking around at my files I have noticed that some folder I have added a zero to the ...
2
votes
2answers
804 views

/usr/bin/rename: Argument list too long

I'm trying to rename a bunch of files and folders. I tried this command rename 's/test/test2/' but I got unable to execute /usr/bin/rename: Argument list too long I searched a lot and tried ...
2
votes
3answers
2k views

Renaming multiple files at once, with the same extension [duplicate]

I'm currently in a situation, where I need to rename a bunch of files, inside different folders, with the same extension (SRT). Currently, my directory "setup" is like this: This is a folder (2000) ...
1
vote
1answer
265 views

Changing file names in sub-folders following a number extracted from the sub-folders

I have a folder with several sub-folders, inside which I have a file with same name in all sub-folders. For example: abc/def_0/ghi.jpg abc/def_5/ghi.jpg abc/def_10/ghi.jpg ... abc/pqr_0/ghi.jpg abc/...
1
vote
1answer
383 views

Rename multiple folders, using regex

As the title says, I'm looking for a command / tool - preferably something running from the terminal (I'm using Ubuntu on a remote server), that can replace a specific part of multiple directories at ...
0
votes
0answers
249 views

Move folder and file name to metadata, batch rename files

I'm very much a novice at programming on the command line so please forgive me asking for very basic help. I want to take a folder with very many subfolders, add the subfolders and file names to ...
0
votes
1answer
679 views

Rename files with wildcards

I have checked the other answers but didn't find anything matches with my case. Question is simple. How can I do the following: rename *A*X*.csv *A*Y*.csv I know that the above line is in the ...
1
vote
1answer
1k views

Rename all files in directory through terminal [duplicate]

Say, I have several files in a directory. How do I rename all of them to "001", "002", etc., saving their current file extensions?
0
votes
3answers
1k views

change many file names to hash (sha256)?

I have a bunch of video files where all the file names are un-useful gibberish. 1) Is there an easy command to change the names of all the files in a folder to a hash, like (sha256).mp4? I don't want ...
1
vote
2answers
2k views

Rename multiple files sequentially and starting by the same prefix

I have a folder containing like 1500 files, I want to rename them automatically via the terminal or a shell script as follows: "prefix_number.extension". Example: cin_1.jpg, cin_2.png ...
4
votes
3answers
4k views

How to change names of files in a directory to random generated names?

I have many files with different names of different lengths. Extension of these files are jpeg. How to change names of the files to random generated names?
0
votes
1answer
174 views

How to rename a .txt file in chronological order? (JavaScript or PowerShell) [closed]

Does anyone know how to write a script (in Java or for use in Powershell) to rename a batch of .txt files for them to count up in chronological order? Ex I need it to start at C1_1+100.txt, C1_1+200....
1
vote
0answers
261 views

This command to rename all files fails: “find: 'rename': No such file or directory” [duplicate]

Trying to replace all file names in a directory with ai to newai. Execute: find . -exec rename 's/ai/newai/' {} ";" Error: find: ‘rename’: No such file or directory What could be the problem here, ...
8
votes
5answers
3k views

How can I prepend filenames with ascending numbers like 1_ 2_?

How can I add numbers to the files in one directory? In one directory I have files like below: fileA fileB fileC fileD I want to prepend ascending numbers to them, like this: 1_fileA 2_fileB ...
5
votes
2answers
1k views

How to rename (unhide) all files and subdirectories within a directory?

I want to make a script to "unhide" all files and directories inside a certain directory in one go, e.g. ./unhide test. test/ ├── sub1 │   └── .hiddenfile1 └── sub2 └── .hiddendir ├── ....
0
votes
1answer
371 views

How do you bulk move files into folders corresponding to the name of each file?

I have several movies in a folder. For example: ~/Downloads/Movies/Movie A (1998).mkv ~/Downloads/Movies/Movie B (1999).mkv ~/Downloads/Movies/Movie C (2000).mkv I would like to put each file ...
6
votes
6answers
5k views

How to move files from subdirectories that have the same directory name to its relative upper/parent directory?

So, I have a directory structure like this: parent/ ├── sub1 │   └── source │   └── file1 │ └── file2 ├── sub2 │   └── sub2.1 │   └── source │   └── something1 │ └── ...
0
votes
1answer
21 views

Moving Subdirectories Between Directories by Folder Name

I have a series of sub-directories, all in one parent-directory, each titled like such: StringA (Date1) StringW [String10] StringB (Date2) StringX [String11] StringB (Date3) StringY [String12] ...
0
votes
1answer
1k views

How can I rename multiple files, since using mv or rename *.* doesn't work? [duplicate]

Note: After asking this question, I found that the file browser Thunar, which comes with Xubuntu and is installable in any Ubuntu version, provides a bulk-renaming utility that works well for me. I ...
0
votes
0answers
26 views

Renaming multiple files at the same time [duplicate]

I have a lot of files that contain a few things in their name that i want to remove. For example I have 78 Files with the name first(official).mp3, 2nd(official)Tutorial.mp3 ...... and so on till 78 ...
5
votes
6answers
988 views

Rename multiple .txt files changing some characters in specific positions

I have a collections of hundreds of .txt files in the same folder in Ubuntu 16.04, and they're named with strings and index numbers, like that: a01_s01_e01_skeleton.txt a01_s01_e02_skeleton.txt ...
1
vote
3answers
845 views

change all file names (prefix to postfix)

I have a directory containing thousands of files with names t_00xx_000xxx.png I want to change their names to 00xx_000xxx_t.png so take the prefix and put it as a postfix, can this be done in only ...

1
2 3 4 5