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
1
vote
0 answers

How to solve Xcode Rename Error "cannot rename symbol xxx referenced by system"?

I try to rename a Swift enum case, then this message pops up. Any ideas? "cannot rename symbol xxx referenced by system" Xcode Version: 13.1 (13A1030d) macOS Version: 12.1 Beta(21C5031d) Error Picture here
George
  • 21
  • 2
1
vote
1 answer

File renaming (string substitution) without a clear pattern using R

Currently, I am working with a long list of files. They have a name pattern of SB_xxx_(parts). (different extensions), where xxx refers to an item code. SB_19842.png SB_19842_head.png SB_19842_hand.png SB_19842_head.pdf ... It is found that many of…
1
vote
2 answers

Change name of columns that have the same name in a df

I have the following df where two columns ara labeled with the same name: dput(df_test) structure(list(X = c("Gen", "ABCB1", "ABCG2", "CES1"), X.1 = c("Prioridad del gen", "Candidato", "Candidato", "Candidato"), X.2 = c("Región codificante",…
1
vote
2 answers

fs.rename unable to rename directories with contents on Windows 10

So I've seen several questions similar to this issue but I haven't found anything that quite fixes it. I'm able to rename a directory with node.js as long as the directory is empty. Once I add contents, I get the error: EPERM: operation not…
Styles2304
  • 143
  • 1
  • 14
1
vote
0 answers

File name conversion in Power Shell (semicolons?)

I have lots of old recorded video files of my kids which I wish to convert their names and get rid of the semicolons (;) and convert it to underscores (_). The file names looks like that: Clip-2007-01-23 20;29;41-1.mkv So I tried to use the…
Erez Cohen
  • 11
  • 2
1
vote
1 answer

Python Dataframe rename column compared to value

With Pandas I'm trying to rename unnamed columns in dataframe with values on the first ligne of data. My dataframe: id store unnamed: 1 unnamed: 2 windows unnamed: 3 unnamed:…
Laurent Cesaro
  • 341
  • 1
  • 3
  • 17
1
vote
1 answer

Rename multiple files in a folder, add a line counts as prefix (Powershell)

I'd like to batch rename files in a folder, prefixing the each filename line counts and "_" into the new names. example a.txt b.txt c.txt d.txt to 1000_a.txt 32_b.txt 199_c.txt 8_d.txt Bonus: pad the line counts with leading…
Ulala Lalalu
  • 13
  • 1
  • 2
1
vote
1 answer

MongoDB - How to modify the "key" element in the document

I am having the below document structure: [ { "network_type": "ex", "rack": [ { "xxxx": { "asn": 111111, "nodes": { "business": [ "sk550abcc1eb01.abc.com", …
Oudadham
  • 23
  • 4
1
vote
1 answer

How to use loop function to rename multiple files' name after read them in R?

I have multiple files under the folder of "rawdata", after read them and assigned them as seperated dataset, i also want to rename them from "dataset 1 a.csv" to "dataset1". I wrote the code that achieve the first goal,using the first loop read all…
Rstudyer
  • 309
  • 1
  • 8
1
vote
0 answers

Playlist Rename with Mediastore on Android 11

In android 11 I cant rename playlists anymore. Here is the error which I'm getting: java.lang.IllegalArgumentException: Movement of content://media/external/audio/playlists which isn't part of well-defined collection not allowed Here is my code: fun…
Petros Mosoyan
  • 238
  • 2
  • 15
1
vote
2 answers

batch rename files with ids intact

i have a directory listing like seascaperecovered0088crop.jpg…
jml
  • 1,745
  • 6
  • 29
  • 55
1
vote
2 answers

How to bulk rename files and remove additional characters after extension in linux

I have too many files urls in a txt file that i've downloaded using this bash command awk '{url=$1; $1="";{sub(/ /,"");out=url" -O \""$0"\""}; print out}' file.txt | xargs -L 1 wget this bash command above is supposed to get each file url and name…
1
vote
1 answer

Renaming dataframe rows with element contained in string name of the row

I have this DataFrame, with row names unfortunately containing both integers and strings, for example '20210902_Rene_Nicole_OC2012A_Sample_0087_20uLinject_01'. I would like to rename the rows to contain just the sample number, the example above…
1
vote
1 answer

How to update my member count through a specific channel name (NOT ID) python

I have tried looping in my bot. The loop is suppose to update the member counter. I wanted double check to see if this is correct as it doesn't update the stats. The channel itself can be made trough the command its the part of updating that I am…
1
vote
1 answer

Using a loop to rename column names

I'm using rename from the dplyr library in R to rename column names. I tried to use a loop to achieve this, which runs without error. However, no column names are updated. The loop is: for (i in 1:length(columns)) { newcol <- columns[i] oldcol…
tmrgn
  • 15
  • 6