命令行批量更改文件名:
rename -v 's/gg/yy' *
解释:
SYNOPSIS
rename [ -h|-m|-V ] [ -v ] [ -n ] [ -f ] [ -e|-E perlexpr]*|perlexpr [ files ]
DESCRIPTION
“rename” renames the filenames supplied according to the rule specified as the first argument. The perlexpr argument is a Perl expression which is expected to modify the KaTeX parse error: Undefined control sequence: \e at position 369: … rename 's/\̲e̲.bak//’ *.bak
To translate uppercase names to lower, you’d use
rename ‘y/A-Z/a-z/’ *
s:替换
gg:原字符串
yy:替换后的字符串