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.
5,472
questions
-3
votes
1
answer
75
views
Is there a way to rename keywords in c# for custom ones? [closed]
As a fun project and making some people laugh, I want to create a project that renames keywords such as true and false into something funnier in C#.
For example, replace True with Yass
How would I go ...
-1
votes
0
answers
7
views
I cannot change a folder name in Windows 10 [closed]
I cannot change a folder name in Windows 10. When I try, a message says "file or folder not found". I can change it over the LAN, or using CMD, but not the GUI. I can change file names, just ...
-1
votes
1
answer
29
views
Pd.rename() does not change my column name [closed]
dfA= dfA [["IdA","ApproveDate","ItemID"]]
dfA.rename(columns={'IdA':'Id', ‘ApproveDate’:’ApproveDateNew’}, inplace=True)
dfB= dfB [["IdB","ProvinceID",...
1
vote
1
answer
36
views
Renaming multiple columns using a column index
Here is my example data.frame
df <- tibble(
ID = 1:3,
col_x = LETTERS[1:3],
col_q = letters[1:3],
col_w = 3:1
)
> df
# A tibble: 3 × 4
ID col_x col_q col_w
<int> &...
-1
votes
0
answers
13
views
How to rename/combine different variable in one column?
Im a begineer. I have column named Var, it has three different variables (Var1, Var2, Var3). I want to combine Var2 and Var3, or perhaps rename Var2 becoming Var3 as both has same value. Do you know ...
0
votes
1
answer
51
views
changing name in R
I have this df
sports=data.frame(name=c('football','hockey','rugby'),
minutes=c(90,70,80),
type=c("outdoor","indoor","outdoor"))
sports2=c('volly',60,NA)
newsp=...
-1
votes
2
answers
51
views
Delete Row and Rename Worksheets From cell value
I've a list on the first worksheet cooresponding tot the worksheet name.
List is from 1 to ... and the name of worksheet is BT1, BT2, ....
Now Have I created a macro to delete a row from the list ande ...
-2
votes
1
answer
57
views
How do I rename files with list of names using command prompt? [closed]
I have a .txt file with a list of names such as:
george_washington
thomas_jefferson
meshach_browning
I want to use the names list to rename the .xhtml files within a directory.
For example: 00001....
1
vote
1
answer
37
views
Renaming all files in a folder_adding a part to it
I have several MAGs named as follows in a folder.
bin.10.fa bin.14.fa bin.17.fa bin.1.fa bin.24.fa bin.27.fa bin.2.fa bin.32.fa bin.35.fa bin.3.fa bin.44.fa bin.48.fa bin.50.fa bin.54....
2
votes
1
answer
44
views
How to properly rename column in postgresql if there are 2 or more instances?
I was doing database migration, where I had to rename column product_id to column entity_id. It was an easy task at a glance, but when we as a team, deployed it in qa env, we've started to get massive ...
0
votes
1
answer
57
views
Excel rename duplicated worksheet
I have this script
I just want to copy List1 and rename as a current date (in czech version formula '= DNES()') '=TODAY()'
function main(workbook: ExcelScript.Workbook) {
let ...
0
votes
1
answer
22
views
Renaming files in applescript
I know a bit about code but am fumbling my way through AppleScript.
I have a very niche problem. I have a bunch (thousands) of music files arranged as such:
Music WAV Files -> Artist -> Album -&...
0
votes
1
answer
36
views
Select and rename specific multilevel column in a dataframe
import pandas as pd
df = {
('A', 'X', "k"): [1, 2, 3],
('A', 'Y', "k"): [4, 5, 6],
('B', 'X', "k"): [7, 8, 9],
}
df = pd.DataFrame(df)
df.columns = df.columns....
-3
votes
1
answer
21
views
batch rename multiple files across multiple folders in centos [duplicate]
This should be simple but can't figure it out:
Original file and folder structure
folder1/folderA1/folderA2/folderA3/OLDfile.jpeg
folder1/folderB1/folderB2/folderB3/OLDfile.exr
I would like to rename ...
0
votes
0
answers
19
views
Dynamic dataframe Name
Background of code: For my project I have quite massive datasets in size and numbers I need to process and calculate a single value for each. My code works in such way that I only have to fill out a ...
0
votes
1
answer
25
views
How to move datafile to network share folder
I use Oracle DB in Windows server.
I can't extend disk. So, I want to use network share folder.
To change the path of oracle db to a network shared folder, I executed the command below.
alter database ...
0
votes
2
answers
83
views
Win Batch File - Remove First File Extension
Using rename command in a batch file in Windows is there a clear way for remove the First File Extension from all files in a directory. For example
1.txt.png => 1.png
2.txt.png => 2.png
Now I ...
0
votes
1
answer
50
views
Python script runs one day, but not the next [duplicate]
I'm trying to learn Python and I've been able to create some scripts that actually work. However, one major problem I keep running into is several scripts that apparently run but immediately close ...
3
votes
1
answer
63
views
Optimizing Code for Adding Spaces between Letters and Symbols, Excluding Parenthesized Words
I'm working on a script that processes a text file, and I'm facing a challenge in adding spaces between letters and symbols, excluding words within parentheses. I have implemented a solution using ...
0
votes
0
answers
52
views
VBA Filing emails to network archive based on folder name skipping some entries
Have some code that I've cobbled together from a bunch of answers here that mostly does what I want it to: takes email from a selected Outlook folder, finds the appropriate place to put it on my ...
1
vote
2
answers
66
views
renaming fasta file using a mapping txt file
Edit solution: https://tejashree1modak.github.io/bioblogs/fasta_rename/
I am looking to rename my scaffolds using a scaffold_mapping.txt file in unix where the .txt file looks like:
$ head ...
0
votes
0
answers
65
views
No applicable method for 'rename' applied to an object of class - renaming column in R
I try to rename 2 of 4 selected columns in data frame wybory_2005 as you can see below:
library(dplyr)
wybory_2005 <- wybory_2005_raw %>%
select('Powiat', 'Rok', '6 - Prawo i Sprawiedliwość', ...
1
vote
0
answers
41
views
Replace name is not working in Powershell for replacing special characters ( | ? ! & ) [duplicate]
I have been going off of stack overflow and chat gpt information to put this script together.
It's not working in replacing/removing a special charaters from every file name in a directory. the ...
0
votes
1
answer
17
views
How to rename the time series that existed data in Apache IoTDB?
I would like to ask, if I need to rename the name of time series that existed data, can Apache IoTDB do this and how to achieve this? Anyone can list out the steps that I need to do?
0
votes
2
answers
197
views
Problem with columns in R... Column does not exist
I am newbie in programming languages, and I am learning R for data analysis. I was following along a course activity, and I'm having a hard time renaming the 'Company...Maker.if.known.' to 'Maker'. I ...
0
votes
1
answer
44
views
How to replace the name_repair behavior of the readr package by numbering duplicates but not by their column position?
Suppose I have this csv file:
asdf,qwer,asdf,qwer,qwer
1,2,3,4,5
If I use readr::read_csv("some.csv") to read it I will obtain new column names for duplicates based on the position of the ...
1
vote
1
answer
52
views
Windows CMD rename files with numbers to add leading zeroes up to a certain field format length
I have files with filenames as ID numbers, and need to rename them to include leading zeroes on the ID number up to 7 digits long as well as add extra words to the file name, and keep the file ...
0
votes
1
answer
54
views
Bin/Bash script to rename directory folder unique names
I'm learning about the rename function in Bin/Bash and I have two goals that I would like to script.
I have 500 unique folder names of various company names that need to be updated. I have the ...
0
votes
2
answers
43
views
macOS Bash - Adding characters in front of file names with a specific extension in folders recursively using Bash
I have to renamed files with a extension like ".abc" and add a prefix in front of it.
like "OldFileName.abc" to "AAA_OldName.abc".
The macOS files are actually folders ...
0
votes
1
answer
57
views
Linux one-liner to batch find all files of a name and duplicate and rename them
In my folder tree of music, artists, and albums and mp3 files, there is a file called cover.jpg for each album.
I want to find all these cover.jpg files and copy them with a new name, folder.jpg. So ...
0
votes
0
answers
29
views
How do I rename the columns of all files in a data frame list?
I have created a data frame list that contains 19 files from a single directory, as follows:
file.list <- list.files(pattern='*.xlsx') #Loads all data in a folder
df.list <- lapply(file.list, ...
-2
votes
1
answer
41
views
How to rename a mysql table and column in a single query?
I'm writing a mysql workbench. I'd like to update a table and columns with a single query. Would I need to use a nested query or is what I'm trying to do not possible?
ALTER TABLE MyTable CHANGE id ...
2
votes
2
answers
74
views
Compute and rename columns at the same time in data.table
I have a data.table with a column "year" containing birth years:
library(data.table)
people <- data.table("year" = 1990:1992)
I would like to rename this column to "age&...
2
votes
3
answers
108
views
How to rename XML element names, decided at run-time?
I've tried a bit myself, search a lot, but could not find a solution how to do that efficiently in Perl (I guess the solution would be somewhat similar to https://stackoverflow.com/a/22119220/6607497):...
0
votes
2
answers
47
views
Summarize/Parallelize a (recursively) rename task in powershell
I have to rename a big bunch of files and replace text in filenames like a1 to a2 and b1 to b2 etc...
Because it's a very large amount of files I want to summarize/parallelize/replace several texts at ...
0
votes
1
answer
22
views
Insert prefix to all pandas dataframe columns names
I have created the following pandas dataframe:
import pandas as pd
ds = {"col1":[1,2,3,4,5], "col2":[6,7,8,9,10]}
df = pd.DataFrame(data=ds)
print(df)
Which looks like this:
...
0
votes
2
answers
39
views
Batch rename files by inserting a quote before the last character of a regex pattern
01 - The situation
Let's say I have hundreds of files like these:
(don't care about the file type)
Steven Scott - Stevens Dinner With Sandy.txt
Matt Lang - Matts First Song.txt
Martin Julien - Martins ...
0
votes
0
answers
42
views
Renaming files content with PowerShell leaves special characters
I created the PowerShell script to rename some files content.
I noticed some special characters (������) appeared after the renaming.
I use the following script:
$configFiles = Get-ChildItem -Include ...
0
votes
0
answers
30
views
VBA Renaming OnAction macro assigned to shapes in a different workbook
Trying to rename OnAction macro assigned to shapes and buttons in a different workbook named objWorkbookToObsfucate.
The macro name
"Sample Spreadsheet_original_Temp.xlsm'!showMyTimer" needs ...
0
votes
0
answers
33
views
Is there a function to rename files with python that has no problems with chinese letters
I got a windows system with python running on it and try to rename a folder that has chinese letters in it. But i always get a error message like No such file or directory C:\temp\weight(\xe6\x9c\xba\...
0
votes
1
answer
34
views
Rename all columns with values in predefined list [duplicate]
I feel like this should be simple but I can't find the answer.
I have over a dozen reports that contain the same fields, but the fields have slightly different names in each report - 'total_spend' ...
0
votes
1
answer
14
views
Error_renaming_columns_in_a_data_frame
I have a data frame in R with columns date, loc.ret and hedged.ret
I am trying to rename the columns using following code
as %>% rename("mom.loc.ret"="loc.ret","mom.hedged....
1
vote
1
answer
54
views
Renaming of files and content within files using Powershell
Can somebody please support for renaming of files and content within files using Powershell:
Root folder contains files (xml, txt and others), also subfolders are contained that themselves contain ...
1
vote
1
answer
52
views
Powershell: two options: replace special characters of file names
I don't know Powershell and tend to do most of my fiddling in CMD.
I've come across two methods of what I think does the same thing in Powershell (replace an illegal with legal character compatible w/ ...
0
votes
0
answers
29
views
Can't figure out how to rename file in remote directory on 4690 using Python
I am trying to leverage the RotatingFileHandler for logging. For whatever reason the base call in the handler to rename the files after it hits the max size, is os.rename (Source -> dest) which ...
0
votes
0
answers
27
views
Excel Vba, when i want to access a table that was previously named by another vba, it doesn't work, but if i input the same name by hand it works
I have a workbook, in this i use vba to create and rename tables. This is the Code i use:
tblName = "E" & ThisWorkbook.Name & "_" & Dropdown_Expander.Text & "_&...
0
votes
0
answers
13
views
Reformatting unzipped directories that contain spaces in the names
I have unzipped directories from the Joint Genome Institute and found that their folder names contain many spaces. I think these spaces are causing many problems when I try to access .gz files within ...
1
vote
1
answer
52
views
How can I write a Powershell script to rename all .pst files as their custodian names?
I want to match the name variable in the same row as the filename (in this case, $CSV.name with $CSV.filename), then rename each file accordingly. How would I go about doing this? Any help is much ...
0
votes
1
answer
62
views
How do I change the names shown on boot menu?
enter image description here
I have two ssd's (Samsung and EVM) with windows 11 on my Acer predator PH315-54 laptop. They show as "Windows Boot Manager" on my Boot Menu in BIOS.When I try to ...
0
votes
0
answers
28
views
BATCH- rename several files with incremental value relative from the oldest date to the newest
I currently need to rename several xlsx;xlsm;csv file.
I need them to have the name "Export_X_DD.MM.YYYY_HH:MM:SS.csv"
Where X is my variable from the oldest to the newest file
To give you ...