![使用通配符重命名](https://linux22.com/image/190280/%E4%BD%BF%E7%94%A8%E9%80%9A%E9%85%8D%E7%AC%A6%E9%87%8D%E5%91%BD%E5%90%8D.png)
我正在尝试使用重命名命令重命名一堆文件
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