让我们假设我想重命名一个文件:
"topography_9x9._001.png“到"topography_9x9_001.png”
我会用
rename -n s/9\./9/g
topography_9x9._001.png renamed as topography_99_001.png为什么这一点没有被反斜杠所掩盖?
发布于 2015-09-22 19:51:14
您没有引用regex,所以\由shell解释:
$ echo rename -n s/9\./9/g
rename -n s/9./9/g引用你的雷克斯:
rename -n 's/9\./9/g'https://askubuntu.com/questions/677215
复制相似问题