2012-10-03 51 views

回答

7

在发布像这样的问题之前,你应该看看bash参考。

for file in dir/[email protected]*; do 
    mv "$file" /path/to/destination 
done 

显然我比我想象的更累。 3coins' comment甚至更​​好:

mv dir/[email protected]* /path/to/destination 

假设你没有足够的配套文件超过最大命令行长度。

+0

是的,谢谢你,那工作 –

相关问题