Questions tagged [rename]

In computing, rename is to reassign the identifying value (or name) of an object, whether it be files, folders or other types of data.

629 questions
456
votes
2 answers

How do I rename a session in tmux?

When I first started using tmux, I didn't give my first session a name. Then, as I started creating different sessions for different tasks (work, play, etc), I started naming my sessions. Now I have a bunch of different sessions, but the first one…
Richard Jones
  • 5,468
  • 3
  • 18
  • 14
135
votes
11 answers

How do I remove the same part of a file name for many files in Windows 7?

Basically, I have an album of music and I want to remove the authors name from all of the mp3 files instead of having to manually do it myself. Is there a function in Windows 7 Ultimate that can do this for me?
qroberts
  • 5,189
  • 12
  • 39
  • 52
101
votes
7 answers

How does the Windows RENAME command interpret wildcards?

How does the Windows RENAME (REN) command interpret wildcards? The built in HELP facility is of no help - it doesn't address wildcards at all. The Microsoft technet XP online help isn't much better. Here is all it has to say regarding…
dbenham
  • 11,194
  • 6
  • 30
  • 47
89
votes
13 answers

Turn off change file extension warning in Windows 7

Is there a way to turn off the file extension rename dialog in Windows 7? The one that prompts you Rename: If you change a filename extension, the file might become unusable. Are you sure you want to change it?
Simon
  • 2,407
  • 7
  • 22
  • 23
89
votes
37 answers

How to force Windows to rename a file with a special character?

I have a song that Windows can't play because there is a question mark in the name of the file. "Where Have All the Cowboys Gone?.ogg" // as an example So I try to rename it and Windows complains whether I try it in Explorer or from command…
codeLes
  • 1,832
  • 5
  • 23
  • 34
84
votes
13 answers

Is there a way to batch rename files to lowercase?

I need a way to rename all files in folders and subfolders to lowercase. I'd like to know if there is a way to do that using only windows (XP or 7)
ino
  • 1,555
  • 1
  • 15
  • 20
59
votes
11 answers

Renaming many files in Mac OS X, batch processing

I used to rename file in Linux via a rename command: rename 's/old_pattern/new_pattern/g' *glob Is there something similar in Mac OS X (Snow Leopard)?
math
  • 2,633
  • 8
  • 31
  • 43
52
votes
9 answers

Why can't I name a folder or file 'CON' in Windows?

In all versions of Windows, we are unable to rename a file or a folder name as CON without third-party file renaming software. Trying to do this in Windows 7 results in an error: The specified device name is invalid. Trying to save a file as…
hari
  • 592
  • 1
  • 6
  • 9
52
votes
6 answers

Is there a linux command like mv but with regex?

For example I want to mv (.*?).sql $1.php, is there a command that lets me specify renaming patterns?
JoshRibs
  • 1,261
  • 3
  • 12
  • 14
49
votes
6 answers

How do you change a TTF font name?

How can I change a font name (not the ttf filename, but the actual font name)? For example, I want to rename "Tahoma" to "Tahoma7". My goal is to rename the Tahoma font installed on Windows 7 and install it on Windows XP under different name, so I…
RubyWedge
  • 621
  • 2
  • 7
  • 11
47
votes
8 answers

How can I make wget rename downloaded files to not include the query string?

I'm downloading a site with wget and a lot of the links have queries attached to them, so when I do this: wget -nv -c -r -H -A mp3 -nd http://url.to.old.podcasts.com/ I end up with a lot of files like…
Keith Twombley
  • 692
  • 2
  • 7
  • 10
44
votes
4 answers

In bash, how can I rename a file without repeating the path?

Possible Duplicate: Reuse text on a bash command If I want to rename a file a few directories deep, how can I avoid repeating the path? For example: mv path/to/old_filename.txt path/to/new_filename.txt I'm wondering if there's a way to make…
Nathan Long
  • 26,015
  • 36
  • 102
  • 139
35
votes
7 answers

Recursively rename files (change extension) in Linux

How do I rename all files in a directory, recursively, changing one file extension to another, for thousands of files in thousands of subfolders? I see a lot of commands that do almost what I want, but not quite. find . -name "*.andnav" -exec…
endolith
  • 7,507
  • 25
  • 84
  • 121
33
votes
7 answers

Windows filename suddenly gets selected again while renaming it

I am finding, when I try to rename a file on Windows 7, I typically select the file I want to rename, hit F2 (rename) and type the new name. I've been getting this weird bug that the file name gets selected again, sometimes right in the middle of me…
Roy Rico
  • 5,868
  • 7
  • 44
  • 57
32
votes
9 answers

How can I rename files and folders in Windows that are in use?

On Windows 7 Ultimate when I try to rename a new folder that is created (by copying usually), I usually get a "Folder is in use" error. I would have to wait a while before I would be able to modify the folder name. Files behave the same way too. I…
NMS
  • 551
  • 1
  • 4
  • 11
1
2 3
41 42