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

1
vote
3answers
171 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
votes
0answers
30 views

Find and replace all text in a file/folder name [duplicate]

How can I search the whole system (Ubuntu Server 14) for all files and folder with a specific string in their name and replace it with another string? For example, I search for "ubuntu" and any ...
1
vote
1answer
24 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
39 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
51 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
41 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
3answers
112 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
0answers
38 views

Rename Files To Be Windows Friendly

I am having difficulty trying to create a back up of my personal files on Ubuntu as I am installing windows on my laptop (the restore disk will likely wipe the ubuntu), and I am trying to move about ...
0
votes
2answers
33 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/' *
3
votes
4answers
272 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 ...
0
votes
0answers
28 views

How can I make home/username.backup-2015-06-09 into home/username?

While installing a new package, the backup of the username directory was autmatically created. It would seem the installation indeed caused a problem, because afterwards there were no visible files in ...
0
votes
0answers
68 views

Wget and delete file on url

Please assist. I need to know how to go about getting a file from my url and then deleting that file from the server. More detail. My script will do a wget from my server and put the file locally ...
2
votes
2answers
445 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
169 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
82 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
66 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
73 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 ...
4
votes
2answers
191 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
303 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
48 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 ...
0
votes
0answers
17 views

Rename Command Line - Ordered list [duplicate]

I wish to batch rename a list of files in Linux command line, but I can´t create a ordered list filename such as 001photo.jpg, 002photo.jpg, 003photo.jpg and so on. I am using the rename command ...
4
votes
2answers
77 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
44 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
96 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
0answers
40 views

wmctrl: Permanently renaming a window

When i use wmctrl to rename a window (Firefox) to something else, the reload of a page or switching to a tab overwrites that name. How can i permanently rename a window? Or how could i re-rename it ...
0
votes
2answers
49 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 ...
0
votes
0answers
217 views

How can I change rename shortcut key to Enter (Return) in Thunar file manager?

Mouse hover method works for all other keys expect Enter. Editing /home/username/.config/Thunar/accels.scm has no effect and it reloads to previous values after logging in again.
9
votes
2answers
322 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
360 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
153 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
177 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
249 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 ...
2
votes
1answer
156 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 ...
3
votes
7answers
1k views

rename multiple files with delimiters

How could I rename multiple files like, IonXpress_049.T11014.R_2014_11_13_11_26_35_user_PR2-41-Pooling0026_3140_13112014.bam ...
5
votes
2answers
1k views

How to rename file extension to lowercase?

I know this question has been asked (and answered) before, but it seems my situation is unique, because I cannot have any of the solution to work. Running, I need to rename all my photos from *.JPG ...
2
votes
3answers
359 views

Rename multiple files whose names include '*'

I have a set of files whose names contain the character *. For Example, a file name could be ***abcdef. I want to change this file name to 3_abcdef, replacing the * with the number of * that were ...
0
votes
2answers
267 views

Command line file rename with date and time

I want to do a weather cam web page I have the command line to take the photo from the webcam then upload it via FTP but I want to do a backup of the photo with time and date as the file name so ...
1
vote
2answers
318 views

lowercase to all files in a directory expecting to undo it at some point

Okay, so I want to batch rename files (and files within subdirectories) in a directory to lowercase, but I also want to undo that at some point. Should I store their real names somewhere so I can go ...
0
votes
1answer
4k views

How to rename a directory in Ubuntu? [duplicate]

May I know how how to rename a directory? because I have a directory which contains more files inside. Thank You.
2
votes
1answer
196 views

Renaming multiple files

My security cameras recorder (located in distant place), FTP`s to my server video files after any event. It automatically creates sudirs with name containing date of day. Using find and ffmpeg ...
0
votes
0answers
19 views

Rename a loadbalancer from its cloned drive Ubuntu 10.04.4

I have 2 LVS load balancers and cloned the drive of one. The 2nd system is developing drive failure. What are the steps to rename the cloned system to replace the failing machine? In other words: LB1 ...
1
vote
1answer
105 views

rename multiple files [duplicate]

I have thousands of files in a directory and need to remove a word if exist but not effect other documents without the word "draft" : Currently ELC.Deeds.to.be.update-2014.draft.xls Rename to ...
5
votes
1answer
274 views

How to rename the set of files with pattern

I have files which has name as following: P50_FR_8_q2_scrolls.csv Here the value 50 and 8 needs renaming & The results should be something like: P21_FR_3_q2_scrolls.csv I tired few ...
1
vote
1answer
40 views

Recovering lost folder name:

Can I recover a folder name accidentally lost in renaming? I've just done a complete installation, formatting everything, from 12.04 LTS to 14.04 LTS. The plan was to slot my Mozilla profile from my ...
0
votes
0answers
30 views

How to rename various file extension into an extension [duplicate]

I have many files in a directory with various extension (files.txt, files.html, files.jpg, etc). I need to change all the extension of these files into an extension (files.ext.backup). So, I will ...
0
votes
2answers
325 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
155 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
75 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
906 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 ...
0
votes
4answers
2k views

Changing file extention

In a folder I have a .run file and am trying to change the extension to .clu. The problem is that I have tried rename 's/.run$/.clu/' *.run But this does absolutely nothing to the file. Note: I'm ...