use*_*683 22 shell wildcards mv
在目录中,/home/in
我有这样的文件:
crust.MC12345.txt
crust.etcMC12345.txt
crust.MC23456.txt
crust.etcMC23456.txt
crust.etctcMC23456.txt
Run Code Online (Sandbox Code Playgroud)
我只需要移动crust.etcMC12345.txt
和crust.etcMC23456.txt
到其他目录,/home/out
何为我在mv命令使用上述场景模式?
jim*_*mij 29
如果我正确理解你的问题,答案很简单:
mv crust.etcMC* /home/out
Run Code Online (Sandbox Code Playgroud)
或者如果etc
不是文字字符串,而是例如任意三个字符,则:
mv crust.???MC* /home/out
Run Code Online (Sandbox Code Playgroud)