Questions tagged [rename]

For anything regarding renaming. Could be applicable to a wide range of subjects. Should be replaced by a more domain-specific tag if applicable.

Questions regarding renaming one or many files, directories, projects, variables, users, data cells, and version control conflicts arising from renaming should be tagged with rename.

To rename a file means to give an existing file a new name without changing any of its content. In UNIX systems, this is done with the mv command.

Renaming a variable will usually require a find-and-replace edit in existing code.

5438 questions
17
votes
3 answers

Name list elements based on variable names R

I want to add elements to an empty list on the fly. Each element in the list should be named automatically after a set of variables which value will vary. However, I cannot seem to find a way to name list elements on the fly without getting…
Neodyme
  • 557
  • 1
  • 9
  • 20
17
votes
3 answers

Gradle - Move a folder from ABC to XYZ

Directory Structure: Project1/ABC/file1.txt I want the above ABC folder moved/renamed to XYZ (without leaving ABC there). How can I do this using Gradle. Seems like in Gradle: For a right hand person, it's itching your right ear using your left…
AKS
  • 16,482
  • 43
  • 166
  • 258
17
votes
3 answers

rename elements in a column of a data frame using pandas

Using pandas: df = pd.DataFrame({'n':['d','a','b','c','c','a','d','b'], 'v':[1,2,1,2,2,1,1,1]}) How can I rename the elements in df.n, such that a changes to x, b to y, c to w and d to z, resulting in: n v 0 z 1 1 x 2 2 y 1 3 w 2 ...
HappyPy
  • 9,839
  • 13
  • 46
  • 68
16
votes
1 answer

How to rename angular app?

I have an angular app which I'd like to rename. Is there an easy way to rename the app other than renaming manually all the occurrences of the app name (like the folder name, in package.json, etc..) Thanks!
locke14
  • 1,335
  • 3
  • 15
  • 36
16
votes
3 answers

How to rename persistence volume claim?

Is is possible to rename a PVC? I can't seem to find an evidence it is possible. I'm trying mitigate an "No space left of device" issue I just stumbled upon. Essentially my plan requires me to resize the volume, on which my service persists its…
oldhomemovie
  • 14,621
  • 13
  • 64
  • 99
16
votes
4 answers

How to rename web.config transforms

I am working in an ASP.net MVC 5 solution in Visual Studio 2015. I have the following web.config How do I rename those to be Web.Integration.config Web.Staging.config Web.Production.config When I right-click on those, I don't get a rename option!
J86
  • 14,345
  • 47
  • 130
  • 228
16
votes
4 answers

How to rename a file on sdcard with Android application?

In my Android application, I want to rename the file name at runtime. How can I do it? This is my code: String[] command = {" mv", "sun moon.jpg"," sun_moon,jpg"}; try { Process process = Runtime.getRuntime().exec(command); } catch (IOException…
Addy
  • 259
  • 1
  • 5
  • 11
16
votes
2 answers

Renaming a file with Amazon S3 PHP SDK

I’m struggling to rename a file within the same bucket with Amazon S3 SDK. I am referring to copy object in the API docs. Here is my call, but it keeps returning “specified bucket does not exist”. $clients = S3Client::factory(array( 'key' …
user1503606
  • 3,872
  • 13
  • 44
  • 78
16
votes
5 answers

How to rename XCode5 project that has an attached Pods?

I'm trying to rename an XCode5 project that has an attached CocoaPods (Pods project). (I've attached the CocoaPods using the following tutorial: http://www.raywenderlich.com/12139/introduction-to-cocoapods) I've tried the standard renaming…
thedp
  • 8,350
  • 16
  • 53
  • 95
16
votes
6 answers

Batch rename files using REN in Windows 7 (adding prefix)

I have figured out how to edit batches of files using REN in Windows 7 Command Prompt. However, this time, I am trying to add a prefix to all files but I am unable to do it. All files are tif files. For instance, files are located in…
user2237330
  • 179
  • 1
  • 1
  • 4
16
votes
2 answers

How can I control the rename threshold when committing files under git?

I'm trying to place into git's history successive snapshots of a specific project. I am doing this by populating the repository directory with the contents of each snapshot and then running git add -A . git commit -m 'Version X' This is the method…
Diomidis Spinellis
  • 18,734
  • 5
  • 61
  • 83
16
votes
1 answer

Tridion Favorites - ability to rename favorite links

I am using Tridion 2011. And I am looking for a way to let users rename the favorite links. Adding a component, folder etc to favorites is straight forward but is there way to let users rename those favorite links?
Ram Gandhapuneni
  • 566
  • 3
  • 17
15
votes
3 answers

How do I rename a table in Oracle so that all foreign keys, constraints, triggers and sequences are updated and any existing data is preserved?

I need to rename a table in Oracle but I want to be sure that any foreign keys, constraints, triggers and sequences that reference the table are updated to use the new name. How can I be sure that I have not broken anything? Note that I want to…
Warren Blumenow
  • 673
  • 2
  • 11
  • 17
15
votes
3 answers

Microsoft SQL Compact Edition rename column

I am having problems renaming a column in SQL Server Compact Edition. I know that you can rename a table using sp_rename, but this doesn't work with columns. I've searched for an alternative, but haven't found one. Can I delete a column and then…
lucian
  • 201
  • 1
  • 2
  • 9
15
votes
1 answer

Move usr/bin/java in Terminal

After updating to OS X 10.11, my java stopped working. I read multiple places that I should do a: sudo mv /usr/bin/java /usr/bin/java.old sudo ln -ns /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java /usr/bin/java But the…
Jesper Andersen
  • 524
  • 2
  • 6
  • 16