安装brew(如果没装过的话)/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
具体过程可以看这个
安装rename(如果没装过的话)brew install rename
如果brew的文件夹没有权限,设置 homebrew-cask 和 homebrew-core 的文件路径为设置为safe.directory
git config --global --add safe.directory /opt/homebrew/Library/Taps/homebrew/homebrew-core
git config --global --add safe.directory /opt/homebrew/Library/Taps/homebrew/homebrew-cask
用cd进到要改的文件夹中,使用正则化重命名 rename "s/AA/aa/" *
cd 不会用的看这里