search for: xyzw02genesis_abc

Displaying 4 results from an estimated 4 matches for "xyzw02genesis_abc".

Did you mean: xyzw01genesis_abc
2017 Sep 28
5
rename multiple files by file.rename or other functions
Hi, I have 50 files whose names are XYZW01Genesis_ABC.mp3 XYZW02Genesis_ABC.mp3 ....... XYZW50Genesis_ABC.mp3 As you can tell, the only difference across the files are 01, 02, 03,....50. I would like to rename them to 01Gen01.mp3 01Gen02.mp3 ....... 01Gen50.mp3 If I store them in one folder and write an R code in that folder, how can it be done? Thanks, Joh...
2017 Sep 28
0
rename multiple files by file.rename or other functions
Hi John, Maybe this: filenames<-c("XYZW01Genesis_ABC.mp3","XYZW02Genesis_ABC.mp3") for(filename in filenames) { filefirst<-sapply(strsplit(filename,"[.]"),"[",1) fileno<-sub("_","",gsub("[[:alpha:]]","",filefirst)) file.rename(filename,paste("01Gen",fileno,".mp3",sep=""))...
2017 Sep 28
1
rename multiple files by file.rename or other functions
...renames for ( s in v ) { file.rename(sub("--",s,strIn), sub("--",s,strOut) ) } HTH, Eric On Thu, Sep 28, 2017 at 1:25 PM, Jim Lemon <drjimlemon at gmail.com> wrote: > Hi John, > Maybe this: > > filenames<-c("XYZW01Genesis_ABC.mp3","XYZW02Genesis_ABC.mp3") > for(filename in filenames) { > filefirst<-sapply(strsplit(filename,"[.]"),"[",1) > fileno<-sub("_","",gsub("[[:alpha:]]","",filefirst)) > file.rename(filename,paste("01Gen",fileno,".mp3&quot...
2017 Sep 28
0
rename multiple files by file.rename or other functions
...8 bus 73, 1000 Brussel. /////////////////////////////////////////////////////////////////////////////////////////// <https://www.inbo.be> 2017-09-28 11:37 GMT+02:00 John <miaojpm at gmail.com>: > Hi, > > I have 50 files whose names are > > XYZW01Genesis_ABC.mp3 > XYZW02Genesis_ABC.mp3 > ....... > XYZW50Genesis_ABC.mp3 > > As you can tell, the only difference across the files are 01, 02, > 03,....50. > > I would like to rename them to > 01Gen01.mp3 > 01Gen02.mp3 > ....... > 01Gen50.mp3 > > If I store them in one folder and write...