沒啥好說的。直接上步驟吧。Mac上沒有自帶rename命令,所以得先安裝rename命令
1、brew install rename
2、批量修改文件名,語法格式: rename 's/stringx/stringy/' files
把 *.txt 文件名中的 `你有啥` 全部改成 `我有啥`
demo: rename 's/你有啥/我有啥/' *.txt
3、如果遇到特殊字符要注意使用 \ 反斜杠 比如:
rename 's/\(/我有啥/' *.txt
沒啥好說的。直接上步驟吧。Mac上沒有自帶rename命令,所以得先安裝rename命令
1、brew install rename
2、批量修改文件名,語法格式: rename 's/stringx/stringy/' files
把 *.txt 文件名中的 `你有啥` 全部改成 `我有啥`
demo: rename 's/你有啥/我有啥/' *.txt
3、如果遇到特殊字符要注意使用 \ 反斜杠 比如:
rename 's/\(/我有啥/' *.txt
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。