Questions tagged [renaming]
342 questions
364
votes
12 answers
Find and replace Android studio
Is there a way to find and replace all occurrences of a word in an entire project( not just a single class using refactor -> rename) and also maintain case, either in android studio or using a command line script?
For example, Supplier has to go to…

sirFunkenstine
- 8,135
- 6
- 40
- 57
90
votes
7 answers
Rename or refactor files in Xcode
Is it possible to rename/refactor a class file and have it rename the actual file on disk? If so, how can I do this?

Sheehan Alam
- 60,111
- 124
- 355
- 556
35
votes
9 answers
How to remove spaces from file names (in bulk)
How to remove spaces (not replace with underscores) from several thousand files in bulk in Windows? Can I do this from the DOS command?
Currently:
file one.mp3
file two.mp3
All files need to become:
fileone.mp3
filetwo.mp3

Nick Kahn
- 19,652
- 91
- 275
- 406
24
votes
2 answers
Renaming a column in MS SQL Server 2005
What is the best practice when it comes to renaming a table column using SQL (MS SQL Server 2005 variant)? This assumes that there is data in the column that must be preserved.

Thomas Bratt
- 48,038
- 36
- 121
- 139
17
votes
7 answers
How to rename Java packages without breaking Subversion history?
The company I'm working for is starting up and they changed their name in the process. So we still use the package name com.oldname because we are afraid of breaking the file change history, or the ancestry links between versions, or whatever we…

Joanis
- 1,669
- 3
- 20
- 32
15
votes
6 answers
AWK, SED, REGEX to rename files
I'm only learning to use REGEX, AWK and SED. I currently have a group of files that I'd like to rename - they all sit in one directory.
The naming pattern is consistent, but I would like to re-arrange the filenames, here is the…

user3043123
- 213
- 1
- 3
- 6
14
votes
13 answers
How should I rename many Stored Procedures without breaking stuff?
My database has had several successive maintainers over the years and any naming guidelines that may have once been in place have been ignored.
I'd like to rename the stored procedures to a consistent format. Obviously I can rename them from within…

fearoffours
- 1,455
- 2
- 12
- 23
14
votes
1 answer
Error While Renaming An Extracted Zip File To Other Languages In PHP
I use PHP ZipArchive class to extract a .zip file, It works fine for English, but cause problems in my local language (THAI).
I use icov('utf-8','windows-874',$zip->getNameIndex($i)) to convert utf-8 to THAI. It works for folder's/file's name, but…

Veerapat Boonvanich
- 251
- 2
- 14
14
votes
1 answer
How to rename existing solution and project in Visual Studio 2008?
Possible Duplicate:
how to rename a project without killing solution
I know that this question has been frequently asked, but none could help me overcome the fear of rendering my application useless by improper renaming of my solution,
I am…

Samy S.Rathore
- 1,825
- 3
- 26
- 43
12
votes
6 answers
Renaming files: Visual Studio vs Version control
The problem with renaming files is that if you want to take advantage of Visual Studio refactoring, you really need to do it from inside Visual Studio.
But most (not all*) version control system also want to be the ones doing the renaming.
One…

Benjol
- 63,995
- 54
- 186
- 268
11
votes
1 answer
Rename columns by pattern in R
I would like to rename all my columns in a dataframe by a specific pattern.
My input:
Log.NE122 Log.NE244 Log.NE144
-0.33 0.98 1.0
My expected output:
NE122 NE244 NE144
-0.33 0.98 1.0
Cheers.

user3091668
- 2,230
- 6
- 25
- 42
11
votes
4 answers
TortoiseSVN cannot commit, says "forbidden by server"
Recently a bunch of renaming changes were made into a folder that I checked out a while ago. Once I updated all of the renaming changes, I am having a problem of not being able to commit anything. It says the following:
I am able to read, write,…

O_O
- 4,397
- 18
- 54
- 69
10
votes
1 answer
Renaming models(tables) in Django
so I've already created models in Django for my db, but now want to rename the model. I've change the names in the Meta class and then make migrations/migrate but that just creates brand new tables.
I've also tried schemamigration but also not…

Toby Green
- 101
- 1
- 1
- 3
10
votes
1 answer
How to Batch change file extensions within subfolders
I am very new to Command Prompt, and only started using it as of 1 day ago.
I have a folder in a location, for example C:\Users\Administrator\Desktop\Images, and inside that folder there is roughly 650 sub-folders, each containing around 20 images,…

Jai Burrell
- 101
- 1
- 3
- 6
9
votes
1 answer
TypeError: cannot do label indexing on with these indexers
I face an error after renaming a pandas dataframe column:
B=pd.DataFrame(data=[[1,1,1],[2,2,2]],columns={'A','B','C'})
print(B.loc[0,'B'])
B = B.rename(index=str,columns={'B':'B_B'})
print(B.loc[0,'B_B'])
This code leads to folowing output:
>…

Lazloo Xp
- 858
- 1
- 11
- 36