2022 Developer Survey is open! Take survey.

Questions tagged [rename]

this is a perl tool that can be used to rename several files using Perl expressions. If you will ask about renaming several files, either use the filemanager you are using, ie. Nautilus, Nemo or the command-line tags.

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

Ubuntu 22.04 Chrome cannot rename filename when saving images

Ubuntu 22.04 using Chrome, I select an image, R-click, Save As Image The dialog pops up with the suggested image name Previously, I had already copied some text to use as the new image name, however, ...
user avatar
0 votes
1 answer
19 views

how to remove a substring of characters from filenames in a directory?

I know similar questions have been asked before but I couldn't find a thread that addresses the 'position' (1 to 5) to be replaced. What is the best way to remove a number of characters from file ...
user avatar
0 votes
1 answer
16 views

Shared Access and LG Smart TV 766PA?

The Videos directory contains files 1.mkv 2.mkv and so on. When trying to share them inside the local network on LG 766PA, the file names become very strange, not the ones I did. Instead of 1.mkv, ...
user avatar
0 votes
2 answers
14 views

Ubuntu unicode directory name starting with backslash renaming

How can I rename a folder with the name \316\234aintenance under the Ubuntu terminal?
user avatar
  • 101
0 votes
0 answers
26 views

Rename files and move to parent directory and delete empty subdirectories

ls */*/* The output of the above command is shown below: HP14_107_Ch/10785/outs: metric_summ.csv HP15_746_Ad/10746/outs: metric_summ.csv HP16_317_TD/10787/outs: metric_summ.csv I want to rename ...
user avatar
0 votes
1 answer
77 views

A bash script to rename files from different directories at once

If I have a directory named /all_images, and inside this directory there's a ton of directories, all the directories named as dish_num as shown below. and inside each dish directory, there's one image ...
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
0 votes
0 answers
21 views

Overwrite FS properties with the EXIF props

I currently have some files that are working and displaying the correct properties from the FS. But some are showing incorrectly when trying to order by date. As the date is showing as "Unknown&...
user avatar
1 vote
1 answer
32 views

How to rename files: picture.jpg.~1~ to picture_~1~.jpg [duplicate]

I have say 30000 files of this type: picture.jpg.~12~ They are remnants of a backup (mv -v --backup=numbered ...). I needed to switch the extensions to: picture.~12~.jpg
user avatar
2 votes
1 answer
63 views

Rename some files to their own name + something else

I have a directory like Photo and I want to change the names of the directories inside it -> to what they are, but without it [www.faraDa...] like the first one that I change by mv command. but I ...
user avatar
-1 votes
1 answer
39 views

Rename files so that it only contain numbers

I have a bunch of files that looks like this: [Skymoon Raws] Mushoku Tensei - 06 [ViuTV][WEB-DL][1080p][AVC AAC].mp4 [Skymoon Raws] Mushoku Tensei - 07 [ViuTV][WEB-DL][1080p][AVC AAC].mp4 And I want ...
user avatar
0 votes
1 answer
49 views

Rename using both captured groups and other variables

In this question I understood that we can only refer to captured groups in the rename command using single quotes. Is there a way to use both captured groups and other variables in the same rename ...
user avatar
1 vote
2 answers
118 views

Is there a renaming tool (for Ubuntu 18.04 Mate) which is able to work on folder names as well?

I am rather new to Linux, I am using Ubuntu 18.04 Mate. When I need to do more complex file renaming tasks I prefer to use KRename (the GUI version that got installed with apt-get). But often I'd also ...
user avatar
5 votes
2 answers
360 views

Renaming a file using a name of another file in the same folder

I have a thousand folders containing two files: one of them with a random name (mp4 extension) and the other with a name (srt extension). I intend to replace the random generated file name by the ...
user avatar
  • 97
0 votes
2 answers
61 views

Relable Icons in Software Application Dsiplay

When I Click the Software Application Icon the display shows 7 Icons with the label 'LibreOffic...'. How can I change the lables to clearly show Writer, Draw, Calc, Math, .... Thanks
user avatar
0 votes
1 answer
366 views

Remove today's date string from all filenames in folder

I have a folder full of jpegs formatted like this: 0001_20210516_XYZ.jpg 0002_20210516_XYZ.jpg 123_20210516_XYZ.jpg 01_20210516_XYZ.jpg and I want to rename all files so the date string in the middle ...
user avatar
  • 103
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
8 votes
2 answers
466 views

Search for file by the name it had before being renamed

I have some hundreds of thousands of files, personal stuff like photos, videos and documents gathered and stored during the years. Most of them are organized by type, dates and topics... But some (...
user avatar
1 vote
1 answer
143 views

Rename file names with a parent directory name

I want to rename my files recursively, ending with *.fna.gz with the parent directory two-step-up i.e. "Aspergillus_neoniger". You can see the subdirectories details in this image tree ...
user avatar
  • 43
5 votes
1 answer
586 views

Remove and replace all Slashes from Filenames recursively

I want to rename every File in a folder-subsystem that contains a slash to be replaced with an underscore Current filenames example: Hello/there.txt File/name.jpg to Hello_there.txt File_name.jpg ...
user avatar
0 votes
2 answers
63 views

Change name of folders recursively - Bash

I want to rename all files called Caudate_masks to lower case: caudate_masks. In my directory I have several folders, one of them called Controls and other one called Patients. Inside each one of them ...
user avatar
  • 127
0 votes
2 answers
1k views

remove certain special characters from file names

I am having an issue transferring folders to my external hard drive- I dont want to change formatting on the HD. So there are 100's of files in the folder, and the error preventing me from copying ...
user avatar
  • 3
1 vote
1 answer
59 views

Rename a character in various filenames inside a subfolder of a folder

I am a noob, I have accomplished various things on the cli, however I haven't been able to rename some files Let me explain with an example. I have this: folder/ subfolder/ fileto_rename....
user avatar
15 votes
2 answers
1k views

how to rename applications in "show apps", such as "GNU Image Manipulation Program" to "GIMP" 20.04.2?

How does one rename applications in "show applications", from, such as "GNU Image Manipulation Program" to "GIMP" in Ubuntu 20.04.2? I have searched the 'Net, and the ...
user avatar
  • 161
0 votes
1 answer
43 views

Using Rename program to delete last characters before file extension

1.What command do you use to delete the last 'n' characters before an extension? 13354443_Walkinthepark-ASGDFSGDG.mkv to 13354443_Walkinthepark.mkv How to delete the first 'n' characters before and ...
user avatar
0 votes
2 answers
31 views

Use rename of unknown string length

I have some files "file 1 [EN MR RE EF SF DS DE].txt" "file 2 [EN MR].txt" "file 3 [EN MR RE EF].txt" Id like to use rename to remove the [ * ] section. I've tried: ...
user avatar
2 votes
1 answer
802 views

Mass/Batch renaming text files based on the first line (content) of the text file in Ubuntu 20.10?

I have 2015 files which are .pgn files. This is a form of text file only, opens with Notepad++. I am I want to mass rename these files replacing their name with the first line of the respective file ...
user avatar
0 votes
0 answers
300 views

Using Caja file manager on Ubuntu MATE, and every time i rename a file and push the right arrow key, i get moved back to the first file in the folder?

I'm renaming a lot of files, and anytime I finish typing the name and hit enter and right to go to the next file, I go back to the first file in the folder. Is this a bug? EDIT: Ubuntu 20.04.1, MATE 1....
user avatar
1 vote
1 answer
1k views

How to rename files keeping only the last N characters

How would I recursively rename Bluebellgray 19707 Rug P1.jpg Bluebellgray Amal 1972407 Rug R1.jpg Bluebellgray Random 1907 Rug R2.jpg Words Amal 1707 Rug R3.jpg Whatever 9707 Rug R4.jpg to P1.jpg R1....
user avatar
2 votes
3 answers
366 views

bash, files, rename files, switch positions

How to rename sluno-20201027-call-metroua-status.mp4 sluno-20201103-call-deriva.mp4 sluno-20201103-call-metroua-status.mp4 sluno-20201105-call-makrocz.mp4 sluno-20201105-call-metroua-testcall.mp4 ...
user avatar
  • 768
0 votes
2 answers
812 views

How to add single quotation marks in the rename command to change the file name?

I am renaming a text file from Programmer.txt to Programmer's File.txt using the rename command in the terminal. I tried the following command: rename 's/Programmer/Programmer's\ File' *.txt But it ...
user avatar
0 votes
3 answers
115 views

rename folders by removing substring

I have a list of folders video_0001 video_0002 video_0003 ... How do I rename them all to 0001 0002 0003 ... ? I tried mv video_{0001..0003} {0001..0003} but it does not work
user avatar
  • 1,072
-1 votes
1 answer
140 views

Rename bulk files

I need to rename the '*.mp3' songs but I don't know how to change name for each and every song in a directory. Does anyone know how to do it? I need to rename my .mp3 files like this: Aaaa.mp3 Aaab....
user avatar
  • 33
1 vote
0 answers
19 views

How to configure autorenaming suffix when file exist

If you download a file ( to you're downloads folder , e.g) , and there's an existing file with the same name, ubuntu renames the new file with a suffix like original_name (2).extension Is there any ...
user avatar
0 votes
3 answers
193 views

How to rename archives in Ubuntu's terminal? [duplicate]

I have the following files: /home/wiki/15000_20000/xx00 /home/wiki/15000_20000/xx01 /home/wiki/15000_20000/xx02 ... /home/wiki/15000_20000/xx4686 How do I rename xx00, xx01, ..., xx4686 to 152000, ...
user avatar
0 votes
0 answers
74 views

Use command "rename" on nested folders with trailing whitespaces

I received great help in this thread about using command "rename" on folders with trailing whitespaces that are also in subdirectories. How to use the command "rename" on ...
user avatar
2 votes
3 answers
2k views

How to use the command "rename" on subdirectories as well

There is an answer that is very useful to me in this thread about renaming folders with trailing whitespaces: Remove Leading or Trailing Space(s) in File or Folder Names What I can't figure out how I ...
user avatar
0 votes
1 answer
30 views

How do I rename *.faa filenames for an expression located inside each file in [brackets]?

I would like to rename the filenames *.faa (a typical name is protein-176.faa) for a name that is located inside each .faa file in brackets [Escherichia coli DSM123]. For example the file protein-44....
user avatar
0 votes
0 answers
40 views

drive mountpoint automatic renaming

What is causing this to happen every few months? BackinTime: "Can't find Snapshots location!"
user avatar
0 votes
1 answer
78 views

How to rename with keyword / specific text in terminal?

I have a question, how do I just rename keywords? I have a very long file name. I am lazy to change it because I have to copy the name first. example filem87302839127921youtube90182mskldq7629121832....
user avatar
8 votes
8 answers
2k views

Renaming muliple files at once

I have a bunch of wav files I converted to mp3 files using ffmpeg. Now the mp3 files are all named file.wav.mp3. How can I remove the .wav suffix while keeping the rest of the file name? I would like ...
user avatar
0 votes
1 answer
75 views

is there something like brace expansion when using perl rename?

I have 100's of files that I want to remove the beginning numbers from. The files are named similar to below: 048banana.txt 049pear.txt 050watermelon.txt 051tomato.txt 062pepper.txt ...
user avatar
1 vote
2 answers
111 views

Specifying directory type when removing characters from directory name

I'm using the following simple line of code successfully to remove a specified word from all file names in a directory: for file in *.* ; do mv "${file}" "${file//UNWANTEDWORD}"; ...
user avatar
0 votes
2 answers
45 views

How to enumerate a variable in a loop starting at 01?

I have a question I have the rename command, but after I run the rename starting from 00, how to start from 01, please help me this is the command that I use for i in *.mkv; do new=$(printf "...
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
0 votes
2 answers
320 views

Copying and renaming files

I am trying to copy multiple files from separate folders and paste them in a new folder with new filenames. Can anyone help me with the same? For example: I have folder 1,2,3,4,5 and each one of them ...
user avatar
  • 3
1 vote
0 answers
38 views

How can I return back videos which was removed? [duplicate]

When I rename "videos" folder, the videos in that have been removed.
user avatar
1 vote
1 answer
217 views

How to remove text from a folder name after a certain word

Need assistance trying to write a script/command that will clear text on a directory after a certain word, in this example download. Thought about using a for i statement but have had no luck. Example ...
user avatar
  • 23
3 votes
2 answers
629 views

Rename multiple files with variable extensions to remove beginning and end of filename

I have multiple files I need to rename as below: 5891_1_0_AD3884_ACTCTCGA_S10.bam 5891_1_0_AD3884_ACTCTCGA_S10.bam.bai 5891_1_AD3875_GAGCTTGT_S1.bam 5891_1_AD3875_GAGCTTGT_S1.bam.bai ...
user avatar
  • 33
1 vote
2 answers
106 views

Renaming files and directories

I have a ton of file films and directories which naming structure is: Name of the film (Author, year) or Name of the film (Author, year) LANG I intend to rename them all (almost three thousands) in ...
user avatar
  • 97

1
2 3 4 5
7