标签: regex linux rename
这是来自rename手册页的引用:
rename
For example, to rename all files matching "*.bak" to strip the extension, you might say rename 's/\e.bak$//' *.bak
为什么会有\e?
\e
命令似乎不起作用,而更简单的命令rename 's/\.bak$//' *.bak完成工作。这可能是文档中的错误吗?
rename 's/\.bak$//' *.bak