没啥好说的。直接上步骤吧。Mac上没有自带rename命令,所以得先安装rename命令

1、brew install rename

2、批量修改文件名,语法格式: rename 's/stringx/stringy/' files

把 *.txt 文件名中的 `你有啥` 全部改成 `我有啥` 

demo:   rename 's/你有啥/我有啥/' *.txt 

3、如果遇到特殊字符要注意使用 \ 反斜杠 比如:

rename 's/\(/我有啥/' *.txt

 

参考:

【1】https://www.jb51.net/article/111961.htm

相关文章:

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