首页 > 编程知识 正文

linux中可实现对文件重命名的命令,linux重命名文件夹命令

时间:2023-05-04 06:34:13 阅读:203414 作者:1565

命令行批量更改文件名:

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:替换后的字符串

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。