No, You again misunderstood.
I don’t want to change first letter of name "mag" to "Mag", "lag" to "Lag" etc.
Please see my modified post 10 again.
At last i found good concise solution ![]()
list=["Time", "Tmid", "T0", "t-T0", "t-to"] # rename to "Time"
listb=["mag", "Limit", "Magnitude","OT", "magn"]
oldtonew = Dict(name=> "Time" for name in intersect(names(df), list))
otn=Dict(name=> "Mag" for name in intersect(names(df), listb))
merge!(oldtonew,otn)
rename!(df,oldtonew)