我有大约 180 个具有相同结构的文件:000-aaaaaaaa.txt.
000-aaaaaaaa.txt
文件名的正则表达式:/^[0-9]{3}\-[a-zA-Z]+$/gi(3 位数字 + -+ 字母 + .txt)。
/^[0-9]{3}\-[a-zA-Z]+$/gi
-
.txt
我想剪切数字部分和-每个文件名
例如
000-hello.txt
hello.txt
001-world.txt
world.txt
002-ubuntu.txt
ubuntu.txt
003-linux.txt
linux.txt
command-line files filename batch-rename
batch-rename ×1
command-line ×1
filename ×1
files ×1