Skip to content
Prev 371582 / 398506 Next

rename multiple files by file.rename or other functions

I think you can even do this:

strIn <- sprintf("XYZW%02dGenesis_ABC.mp3", 1:50)
strOut <- sprintf("01Gen%02d.mp3", 1:50)
## perhaps try cbind(strIn,strOut) first
file.rename(strIn, strOut)

-pd