fil_nam <- list.files("E:/BaiduNetdiskDownload/",full.names = T)
re_nam <- fil_nam %>% str_replace_all("rm_str", "new_str")
file.rename(fil_nam, re_nam)
fil_nam <- list.files("E:/BaiduNetdiskDownload/",full.names = T)
re_nam <- fil_nam %>% str_replace_all("rm_str", "new_str")
file.rename(fil_nam, re_nam)
本文标题:批量修改文件名
本文链接:https://www.haomeiwen.com/subject/kjdlkqtx.html
网友评论