Tagged Questions

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
2answers
43 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 ...
0
votes
2answers
69 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
49 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
2answers
89 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
11 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
38 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
130 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
27 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
29 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
30 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
40 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
37 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
481 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
304 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 ...
2
votes
2answers
110 views

Change guest username

Now, looking around on Google shows me some ways in which to customise the settings of the Guest session. But, I would love a way to change the name of the Guest account. Basically, I'm planning to ...
3
votes
5answers
601 views

Removing specific part of filename (what's after the second dash) for all files in a folder

I use the command line utility youtube-dl to download videos from YouTube and make mp3s from them with avconv. I'm doing this under Ubuntu 14.04 and very happy with it. The utility downloads the ...
0
votes
1answer
31 views

cannot rename files when saving

I am using xubuntu 13.10. Since the last update, when I am saving files I cannot rename other files, there are missing buttons in context menu like rename, cut, copy, etc... let`s say I edited the ...
8
votes
5answers
551 views

Append text to file names which do not contain a dot

Given the following files: english_api english_overview style.css I want to get: english_api.html english_overview.html style.css In other words how to append a text to all files that do Not ...
0
votes
0answers
416 views

move files and auto rename if same name | bash script find all *.extension

Something like "--auto" in: http://doc.bazaar.canonical.com/beta/en/user-reference/mv-help.html It seems a bit complicated to --no-clobber (-n) and work on return codes if [ $? -eq 1 ];then ...
0
votes
2answers
62 views

Must copy and rename file

Hi all i was asked to find the terminal command that will make a copy of a file lets call it program3.cpp and give to the copy the name homework6.cpp. After that you will have two files with ...
3
votes
3answers
88 views

Bulk/Batch-rename files with different endings (NOT change the endings)

My Problem, that I've got a folder with many different files like: xxxxxxxxx.avi yyyyyyy.jpg zzz.txt And I want to rename them into 001.avi 002.jpg 003.txt It's not working with ...
0
votes
1answer
31 views

Rename new files as the old ones

I have a large music collection, and a good number of playlists that I have formed over the years. All the music is neatly organised in a folder hierarchy. I have managed to get my hands on higher ...
0
votes
0answers
32 views

Bulk Renaming Program sort manually

Very often I want to batch rename files by simply giving a string that’s combined with a number like: newname-01, newname-02, ... But I usually want to sort the files before doing that. I’ve tested ...
0
votes
0answers
31 views

How to change bluetooth peripheral device name? [duplicate]

does anyone know how to change the name of peripheral bluetooth devices in ubuntu 13.10? i have a logitech audio receiver that always shows up as "(94)Logitech Adapter" but i would like it to say ...
2
votes
1answer
83 views

Capture groups are ignored when renaming files

I have a number of files in this format: ##.## - File name.mp4 I want to rename them to: s##e##.mp4 This is what I came up with: rename -n "s/^(\d{2})\.(\d{2}).*/s$1e$2.mp4/" It works when I ...
1
vote
3answers
177 views

I cannot rename files in bulk using ubuntu's rename feature

I cannot rename files in bulk using ubuntu's rename feature. The files are on a NTFS partition. I want to rename files that look like this: whatever pic george.jpg tacoma narrows bridge.jpg green ...
0
votes
3answers
60 views

Rename the extension of many files

I would like to rename the extension .tar?h=ocdist105&=%2Fdata1%2F4070d0f0f1d62757%2Frequested_files for just .tar I tried the command rename ...
1
vote
0answers
21 views

rename app stops running from toolbar

After installing some apps, I wanted them to open via the terminal. Unfortunately Ubuntu uses names for these new apps that are hard to remember. I renamed my file by: mv ¨old file directory/old ...
0
votes
2answers
72 views

File could not be renamed, folder name conflicts with filename in Ubuntu 13.10

As the title says, my fresh, updated Ubuntu 13.10 install, presents a conflict with files and folders of the same name, in the same location, as shown below
1
vote
1answer
319 views

Script to rename files

I appreciate any help in advance. I have written a script to rename all .BMP files, and it seems to work, but I get the following error/message for each file: IM2019.BMP mv: cannot stat ...
1
vote
4answers
597 views

How to rename /dev/sdax(partitions) in Linux

I made a partition like /part on my machine with some important data... But I can't stand the name of it... I want a clear solution to resolve it and change the name of it to for example /test... ...
0
votes
2answers
248 views

Rename command special characters in filename

I would like to remove [] in multiple file names. I get an error when doing it with the rename command. Is there another way to do this?
0
votes
1answer
428 views

Change multiple file names in sub directories in single line

I have a directory named backup. Backup contains several subdirectories named monday, tuesday, wednesday... each subfolder contains file named filename.txt I want to change all names filename.txt to ...
3
votes
1answer
124 views

Why can't I rename a file from 'NAME' to 'name'?

I am unable to rename a file from RELEASE to release which is currently located on my USB flash drive. If I try to rename it through the file manager (Nautilus), it shows the error message as ...
0
votes
0answers
40 views

Problem opening xboard

I recently installed xboard but when I type xboard in the terminal it is not opening instead gives me the following error: dineshkumar@dineshkumar-desktop:~$ xboard load checkmark.bm xboard: Can't ...
3
votes
1answer
236 views

Code works in terminal but not in script for renaming (manipulate filenames with spaces)

I want to learn more so I have tried to script more than just using the terminal. I know rename and I can rename image files with rename 's/ /_/g' *.jpg but when I write it in a shell script to point ...
1
vote
5answers
229 views

Hide multiple files at once with shell script

I'm trying to hide some files with some command, I tried the rm command, but it did not work and also tried to rename but did not understand how it works. The files that I want to hide have spaces in ...
2
votes
4answers
378 views

How do I change extensions of all files in a folder to one common extension when all the files have different extensions?

I have a grader for COCI (a competitive programming contest) that reads input files (txt[number].in), compiles and runs a code (txt.cpp) and matches the result with an output file (txt[number].out). ...
0
votes
2answers
965 views

How to prevent users from renaming files while providing write permissions on Linux

For some special purpose, I want to prevent non-root users of the Linux Server from changing or renaming the filenames. However, they can modify and write to the contents of the file. How to do this ...
1
vote
1answer
2k views

Libreoffice crashes when saving document (tried deleting profile dir)

I have an .ots template file at the directory: /home/peter/Documents/Business_from_2005/Security_Web/ which was changed earlier today, from: /home/peter/Documents/Business from 2005/Security Web/ ...
0
votes
1answer
851 views

How to Rename multiple files

I have hundreds of images which I want to rename: Current name A0619101. Rename to A1906101 Current name A0825223. Rename to A2508223 Actually the first and second digits must become third and ...
2
votes
2answers
676 views

Rename files numerically (date/time order)

I have 200 files in a folder which I downloaded. I downloaded them in a certain order -- often only a few seconds apart. I would like to append a number to the beginning of each of the files. So the ...
2
votes
2answers
3k views

Remove part of file name using for loop in terminal

In terminal using for loop we can add a part before or after the file name. But if we want to remove it how do we do this? For example we can add .old after all .txt files name using the command ...
2
votes
3answers
181 views

rename file from title - author to author - title

my files are of the form War of the World - H. G. Wells.pdf I would like Wells H G - War of the Worlds.pdf There are several other file extensions epub, mobi etc. Is there a package that will do this ...
2
votes
1answer
415 views

Is it 100% safe to rename a file while it's being written?

In Ubuntu, unlike in Windows, I can rename a file while it's being written onto the hard disk (for example because it's the output of a program or the copy of another file), and I can also rename a ...
-2
votes
2answers
239 views

Renaming a directory?

I have a directory I want to rename without spaces. This is the path to the file with spaces /home/ebank36/minecraft/The Fall of Gondolin. I want to rename that directory to TFoG so I would like it ...
0
votes
2answers
488 views

Need help mass renaming files using command line that contain a certain string

I have about 200 files that are named like this: 01_-_Back_Alley_Uproar.avi 01_-_Bad_Luck_Cat.avi 01_-_Beep_Beep.avi 02_-_Broomstick_Bunny.avi 02_-_Bunker_Hill.avi and so on. I would like to ...
1
vote
5answers
2k views

Changing extension of multiple files in Ubuntu 12.04

As the title says, how can I change the extension of every file in a directory in Ubuntu? I've seen some examples use rename etc etc but I get an error (Unable to locate package rename) and it's not ...
2
votes
1answer
520 views

copy files from one folder and paste them to another location under same folder name

Please, I need help with backup... I am trying to do something and I have NO IDEA how to start. I want to make a script in Ubuntu that would search through all folders of my W7 partition, and wherever ...
2
votes
2answers
4k views

How to rename all files in folder with name ending with “_backup”

I have a bunch of images that were somehow renamed from myimage.jpg to myimage.jpg_backup, so the images on my website don't load anymore. How would I recursively find all images ending with _backup ...