我正在尝试使用重命名命令重命名一堆文件
Blue - This file is called Blue ok.txt
Red - This file is called Red ok.txt
Orange and Yellow - This file is called Orange and Yellow ok.txt
... 进入:
Blue.txt
Red.txt
Orange and Yellow.txt
我无法让它理解中间的通配符。我试过了:
rename -f 's/ - This file is called* ok//gi' *.txt