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.

learn more… | top users | synonyms

0
votes
0answers
18 views

Error renaming my external hard disk

While I am trying to rename my external hard disk I am getting the following error: Error setting label: Command-line `ntfslabel "/dev/sdb1" "Linux"' exited with non-zero exit status 1: Volume is ...
-1
votes
1answer
35 views

Rename file under sub-directory in bash [duplicate]

I would like to know how to change the name of a txt file inside a directory. I know that I can mv test123 test456, but that only changes the name in the current directory. What if I want to change ...
6
votes
4answers
798 views

renaming folders using a .txt file

I'm working in my terminal using bash trying to rename the folders: 1 2 3 4 5 I'd like to rename them according to a.txt file: a 2 c 3 d 5 e 1 b 4 The order in the .txt file is completely random....
9
votes
1answer
279 views

Renaming files on Ubuntu-GNOME appears weird instead of blue

When I try to rename a folder, the selected content looks weird. The selected text should have become white with blue background. Instead it becomes like this : I just installed Ubuntu-GNOME and I ...
1
vote
2answers
60 views

How to rename photo filename to include the date?

I have a group of photo files that are named with only a sequence number like: Imagexxxx.jpg (xxxx is just a sequence number) what I am trying to search but sadly no results, is to add the date of the ...
1
vote
3answers
48 views

Rearrange the components of filenames for a group of files

I have a group of photo files that are named: ddmmyyyyxxxx.jpg (xxxx is just a sequence number) that I am trying to search but sadly no results, is to rename the filename to yyyy-mm-dd-xxxx.jpg. All ...
0
votes
1answer
35 views

TVShow Renamer Run Solely Through Bash/Terminal

I come from Windows and used therenamer religiously. Is there something similar that can be used on Linux (I saw filebot...maybe) that can also be used through a bash script/terminal commands? ...
3
votes
3answers
138 views

Remove leading whitespace from files, folders and their subfolders

I came up with this, but unfortunately it doesnt affect any files/folders in subfolders. find . -exec rename "s/^\s+//" {} \; Folder structure: foo |-- \ bar `-- \ foo1 |-- \ bar1 `-- \ ...
0
votes
0answers
34 views

Quick Question. How do I change the name of my Linux? [duplicate]

I'm not sure if it's the computer name or not but it's the one right before the host name (ubuntu) on the terminal... axon-pc_ubuntu@Ubuntu ~ $ Edit: This question differs from one that was ...
3
votes
3answers
224 views

How to rename all files in folders with pattern

I have a bunch of files like: bla.super.lol.S01E03.omg.bbq.mp4 bla.super.lol.S01E04.omg.bbq.mp4 bla.super.lol.s03e12.omg.bbq.mp4 I need to rename them all like: s01e03.mp4 s01e04.mp4 s03e12.mp4 ...
0
votes
0answers
25 views

Save find and replace templates for krename?

I am using krename quite often for renaming files. It is a fantastic tool. However, I often use the same find and replace patterns. What I mean is I often find myself typing the same list in the ...
0
votes
2answers
83 views

Terminal: Rename multiple files to be in numerical order [duplicate]

I have a lot of files that I need to rename in numerical order. So what I have is this Getting Started 1.jpg Getting Started 10.jpg Getting Started 100.jpg Getting Started 101.jpg Getting Started 102....
1
vote
1answer
78 views

How to rename a part of file using find command in directory and sub directories [duplicate]

I have a lots of log file in a directory and it's sub directory named as dataupload_sales_.xxx.com.dat. I wanted to change all files xxx.com part to yyy.com in current and sub directories. i hope it'...
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 ...
1
vote
1answer
41 views

Renaming multiple directories adding string after pattern

I have some directories that begin with the date. I want to include a string (name) after that date. How can I do it? - rename 's/.*-..-../(name) /' * replaces the date but I don't want to replace it,...
0
votes
2answers
33 views

How to replace symbol in multiplefiles? [duplicate]

I have many files in directory(with folders so i think solution must be recursive in deep) root-folder file-1.png file-2.png file-3.png file-4.png file-5.png folder-1 file-1.png file-2.png file-...
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
3answers
319 views

Rename Files & Folders With Special Characters

Struggling with this one and Googling it doesn't seem to be giving me solution that works. I have a folder named... file å?? name.txt for example and to avoid problems, I want to rename it however ...
0
votes
2answers
49 views

Rename great number of files in ubuntu terminal

I have some files which was written as : test_026542_time0663550.5.jpeg and I would like to rename as test_0663550.jpeg in order to classify easily by order number because I have some errors with the ...
2
votes
2answers
58 views

Rename multiple files remove all characters

How can I replace this [www.Example.com]Name-episode-77.mp4 FGBs episode 3 dks.mp4 to HxH 077.mp4 HxH 003.mp4 *Files name doesn't follow exact pattern I want to :- Remove all characters and ...
0
votes
4answers
77 views

Renaming bunch of files, but only part of the title

I need to rename a bunch of files (about 167k), and only part of the title in each file. From: Aaaa.bb - 2 tag tag_tag 9tag Aaaa.bb - 125 tag_tag 9tag Aaaa.bb - 3567 tag 9tag To: Aaaa.bb - 000002 ...
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 ...
0
votes
1answer
23 views

Problem with rename and mask the point

Lets assume that I want to rename a file: "topography_9x9._001.png" to "topography_9x9_001.png" I would use rename -n s/9\./9/g topography_9x9._001.png renamed as topography_99_001.png Why ...
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 ...
1
vote
3answers
2k views

Remove Leading or Trailing Space(s) in File or Folder Names

I worked out a neat way ro get rid of duplicate files. You know, the ones that contain "(1).", "(2).", "(3).", etc. in their names. In a terminal window, at the command line, you type in "rm "[...
1
vote
1answer
31 views

Rename *FINAL.mkv to *.mkv keeping original “*”

So I have a bunch of files created with the name *FINAL.mkv and I have a (1st) script to remove all the files except files with FINAL.mkv I need help renaming the new files back to the original *....
0
votes
2answers
84 views

Delete first part of file names

I have a directory full of files foo_num.txt. I'd like to rename all to num.txt (that is delete the "foo_" part). Can I do this in one line?
0
votes
1answer
170 views

Real-Time Volume Leveling & Audio Outputs

I've been looking around for something like this, but the only solution I found here only works for one output, and is very inelegant. I want something that will raise quiet sounds, lower loud ones, ...
2
votes
2answers
207 views

Renaming (.filename) file to original names

I'm trying to revert a change I made via rename. I was renaming files in a subfolder, then without thinking, tried to clear the .. from names using: rename "s/.././" * Now I have a folder of 600 ...
2
votes
4answers
758 views

Renaming files by their modification date

I've got some (96) images, that I need to rename. Every program or script I've used is automatically sorting files by their old name, but they need to be numbered in modification date order. Example: ...
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 ...
4
votes
2answers
7k views

How to specify a filename while extracting audio using youtube-dl?

I can create an mp3 of a YouTube video with the following command: youtube-dl --extract-audio --audio-format mp3 http://www.youtube.com/watch?v=rtOvBOTyX00 It creates an mp3 with the following ...
2
votes
2answers
328 views

Rename file which uses the first 2 letters of every word

I'm currently using a simple script for renaming: for f in *.mp4; do echo mv $f $RANDOM$RANDOM$RANDOM.mp4; mv $f $RANDOM$RANDOM$RANDOM.mp4; done But instead of using the $random, I would ...
1
vote
5answers
139 views

Delete pattern of names from files [duplicate]

I downloaded some files with youtube-dl. The name is always like this foo - baar -PSUHDUWHDAIHDWU.ogg/mp3/... How can I remove this random letters (cut the last '-*') at the end from all files of a ...
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
434 views

Ignoring files while updating

I did the following commands: sudo rename 's/\.list$/.list.disable/' /etc/apt/sources.list.d/*.list sudo apt-get update sudo aptitude -f install libgl1-mesa-dri:i386=9.2.1-1ubuntu3 libgl1-mesa-glx:...
3
votes
2answers
341 views

How to replace filename whitespace with underscore? [duplicate]

I have a routine need to replace filename whitespace (space, period, hyphen, etc) with underscore. Normally, it seems faster to brute-force it with rename than to write a script. Couple of months ...
4
votes
2answers
390 views

How can I batch rename filenames in the console

I have a great number of files whose name is "img800400_497708.307247.png", and I would like to change all dots (periods) to an underscore using the console. How can I do that?
2
votes
2answers
105 views

Is it possible to undo a file rename using Nautilus?

Sometimes I want to rename a file that has quite a technical, complicated name by appending a date or some other information to it. Because the name can be complex, it can be problematic if the name ...
4
votes
2answers
127 views

Rename all file extension in directory

I am new to scripting, and I have a directory with all files named num.pdb.ostat. I would like to rename all num.ostat (that is deleting the .pdb in all). For a single file this works: mv 2.pdb.ostat ...
0
votes
1answer
51 views

How to make it possible (in Ubuntu 14.04) to change name of a file with just 2x clicking on it?

How to make it possible to change name of a file with 2x clicking on it (like in Windows), without right-clicking and then 'rename'?
1
vote
3answers
195 views

How to rename multiple files like in windows

I have a direcotry of songs all of which are from the same singer. I just want to rename all the files of the directory as: SingerName(1) SingerName(2) SingerName(3) ... just like we coould do it ...
0
votes
2answers
77 views

Not renaming a folder/file via terminal

mv "old location" "new location" mv /home/user/my_static /home/user/static = just old folder copied into new folder. Am I missing something completely obvious? ( I am reading the Linux tutorials ...
9
votes
2answers
444 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 ...
2
votes
2answers
441 views

How to delete part of a name of 195 diffrent files in one folder?

I have 195 files in one other folder. Every single one has a combination of numbers and letters in [] brackets in front of its description. Example: [12hjk534m45] description. Is it possible to ...
1
vote
2answers
313 views

Add Prefix name in a file in Perl Script

I am trying to write a perl script to add the prefix name on the file (~100 files), but i am failed to get it done. Example case that what I means: abc.jpg change to NYear_abc.jpg def.jpg ...
0
votes
1answer
453 views

Renaming file from UI

I can not rename files from the UI on my Ubuntu installation (14.10), it does, however, work from the terminal with the mv command. What happens is: when I right click on the file, then choose "rename"...
2
votes
1answer
280 views

Rename all files in subdirecories

I am having a problem writing a script for mass renaming of files in subdirectories. I have a folder with multiple subfolders, and those subfolders have multiple files that I need to rename. This is ...