ubuntu
$ rename 's/^(.{10})//' *
批量删除文件名前10位
Mac
rename -n 's/.{10}(.*)/$1/' *
The -n
is for simulating; remove it to get the actual result.
$ rename 's/^(.{10})//' *
批量删除文件名前10位
rename -n 's/.{10}(.*)/$1/' *
The -n
is for simulating; remove it to get the actual result.
本文标题:Ubuntu/MAC批量修改文件名
本文链接:https://www.haomeiwen.com/subject/vmtsjltx.html
网友评论