2022 Developer Survey is open! Take survey.

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
2 votes
3 answers
183 views

Removing a variable pattern from the title of my files

As I finally received data from NGS sequencing, for some days I used Ubuntu to analyse them. However, I lack the basics of shell coding, and I feel overwhelmed by this whole new language. I managed to ...
user avatar
0 votes
0 answers
12 views

Caja: How to start Batch Rename by keyboard shortcut in Caja?

Caja 1.26.0 in Ubuntu Mate 20.04 comes not only with a regular rename but also a batch rename function, provided through an (already installed extension (also in the Edit Menu but with an “A” symbol ...
user avatar
  • 1,029
0 votes
1 answer
82 views

How to rename multiple file extensions in ubuntu 20.04 terminal?

I have hundreds of files without extension that I'd like to add a ".py" extension to all of them. As you can see manually renaming them one by one is a time consuming process. I think there ...
user avatar
0 votes
0 answers
33 views

How to rename list of files to a partial same name plus numbered sequence before extension

mv MIPS_236_CONTROLLING_HIGH_BLOOD_PRESSURE_CA_20221701_Denominator_P1_1.csv ../MIPS_236_CONTROLLING_HIGH_BLOOD_PRESSURE_CA_20221701_Denominator_1.csv mv ...
user avatar
0 votes
1 answer
29 views

How can I rename files by switching the order of strings inside the filenames?

I think the title is not clear, English is not my first language, sorry. But I hope you get the point with an example. I have a lot of files like this : (Name of Composer) Title of song - Name of ...
user avatar
  • 184
3 votes
2 answers
931 views

How to remove a specific part of the file name from a lot of files

I have an old backup from a windows pc, but most of the files have a timestamp at the end. All the files need to keep their original name, but without that timestamp. How do I remove a specific part (...
user avatar
  • 53
2 votes
2 answers
212 views

Find all files with given extension in subfolders, and add substring corresponding to subfolder

I have numerous txt files, scattered across different folders. - case1 | - 0.25 | - case1.txt - 0.35 | _ case1.txt - 0.30 | _ case1.txt -...
user avatar
  • 255
1 vote
1 answer
51 views

how mass rename files with the following syntax

I have about 130 images in the following syntax: image100.jpeg image101.jpeg .... image1.jpeg image20.jpeg image21.jpeg .. image2.jpeg and so on. I want rename with the following syntax because I ...
user avatar
  • 332
0 votes
1 answer
33 views

How to shuffle files and rename sequentially

I have a set of .png images, currently named in sequence from 1 to 1000. How can I take these images and reassign them to a random number between 1 & 1000 so I end up with the same range of ...
user avatar
  • 1
1 vote
2 answers
115 views

How to find and rename files with different extensions

I have some files inside a folder like this: DUMAK011.618 DUMAK011.619 DUMAK011.620 I would like to rename them to: DUMAI011.618 DUMAI011.619 DUMAI011.620
user avatar
3 votes
1 answer
352 views

Install Bulky (Nemo bulk renamer)

I can not figure out how to install the new feature that is coming to Linux Mint 20.2. The bulk renamer Bulky (https://github.com/linuxmint/bulky). Because it's such a new thing, i can't really find ...
user avatar
2 votes
3 answers
218 views

How to batch rename sequentially prefixed numbers to new sequential prefixes via terminal?

How can I batch rename, using the terminal, a set of files where multiple numbers share the same prefix so that all those prefixes are set to new ones? For example: 011.foo.txt -> 001.foo.txt 011....
user avatar
  • 23
0 votes
2 answers
249 views

How to sort files into directories and subdirectories by name?

I'm new to ubuntu and also to the programming world, and I don't really know how to do this! I have a folder with lots of files named as follows: 000_S_001_mpc_asd.json 000_S_001_mpc_asd.nii ...
user avatar
  • 3
3 votes
4 answers
679 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 ...
user avatar
1 vote
1 answer
463 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....
user avatar
0 votes
1 answer
414 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 ...
user avatar
  • 21
1 vote
1 answer
448 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 ...
user avatar
0 votes
1 answer
508 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 (...
user avatar
3 votes
2 answers
569 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. ...
user avatar
0 votes
2 answers
71 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 ...
user avatar
3 votes
3 answers
662 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".
user avatar
0 votes
1 answer
606 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 ...
user avatar
1 vote
1 answer
1k 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 ...
user avatar
0 votes
2 answers
51 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: ...
user avatar
  • 169
2 votes
1 answer
159 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 ...
user avatar
2 votes
3 answers
528 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 (...
user avatar
  • 97
11 votes
6 answers
6k 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 ...
user avatar
0 votes
1 answer
69 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 ...
user avatar
  • 184
2 votes
1 answer
183 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 ...
user avatar
5 votes
1 answer
380 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: ...
user avatar
  • 670
2 votes
1 answer
1k 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 ...
user avatar
  • 1,088
1 vote
1 answer
287 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 ...
user avatar
1 vote
1 answer
101 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: ...
user avatar
  • 75
2 votes
1 answer
182 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 ...
user avatar
  • 75
1 vote
1 answer
3k 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....
user avatar
-1 votes
2 answers
178 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 │   │   │   └─...
user avatar
1 vote
1 answer
89 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 ...
user avatar
1 vote
1 answer
109 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.
user avatar
0 votes
3 answers
578 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 ...
user avatar
2 votes
1 answer
229 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 ...
user avatar
  • 135
2 votes
2 answers
1k 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 ...
user avatar
2 votes
3 answers
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) ...
user avatar
1 vote
1 answer
311 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/...
user avatar
1 vote
1 answer
676 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 ...
user avatar
0 votes
0 answers
344 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 ...
user avatar
0 votes
1 answer
1k 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 ...
user avatar
  • 157
1 vote
1 answer
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?
user avatar
0 votes
3 answers
2k 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 ...
user avatar
1 vote
2 answers
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 ...
user avatar
  • 5,696
6 votes
3 answers
6k 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?
user avatar
  • 173

1
2 3 4 5