假设在路径C:/下存在多个类似以下的文件名

file_nall_abc1.txt

file_nall_abc2.txt

file_nall_abc3.txt

file_nall_abc4.txt

file_nall_abc5.txt

file_nall_abc6.txt

file_nall_abc7.txt

现批量去除文件名中的字符串“all”,变成如下形式:

file_n_abc1.txt

file_n_abc2.txt

file_n_abc3.txt

file_n_abc4.txt

file_n_abc5.txt

file_n_abc6.txt

file_n_abc7.txt

只需要用到rename命令,命令行如下:

rename all_a _a file_nall_abc*.txt

  

相关文章:

  • 2021-07-06
  • 2021-07-29
  • 2021-10-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-27
  • 2021-11-06
猜你喜欢
  • 2021-12-30
  • 2021-05-25
  • 2021-12-30
  • 2021-10-06
  • 2021-07-13
  • 2022-12-23
相关资源
相似解决方案