相关疑难解决方法(0)

如何批量移动前一年到文件名的末尾?

我有一个文件列表(数千个),如下所示:

/path/2010 - filename.txt
/path/2011 - another file name.txt
Run Code Online (Sandbox Code Playgroud)

始终遵循以下模式: #### - string.txt

我需要将它们更改为如下所示:

/path/filename (2010).txt
/path/another file name (2011).txt
Run Code Online (Sandbox Code Playgroud)

如何使用bash,shell,terminal等快速完成此操作?

regex unix bash shell rename

3
推荐指数
1
解决办法
628
查看次数

标签 统计

bash ×1

regex ×1

rename ×1

shell ×1

unix ×1