命令将文件移动到另一个目录

时间:2021-06-07 02:23:32

I have a files that have a name somethings like this

我有一个像这样的名字的文件

BK-Voice-1110694.wav, BK-Voice-1110695.wav, BK-Voice-1110696.wav,.... until BK-Voice-1110711.wav . How to move the files BK-Voice-1110695 until BK-Voice-1110708 to another directory using command in Centos .I already run this command mv *-1[110695-110708]* ../201501/ & .But it move all the files to that directory.Anyone can help me please ?

BK-Voice-1110694.wav,BK-Voice-1110695.wav,BK-Voice-1110696.wav,....直到BK-Voice-1110711.wav。如何使用Centos中的命令将文件BK-Voice-1110695移动到BK-Voice-1110708到另一个目录。我已经运行了这个命令mv * -1 [110695-110708] * ../201501 /&但是它全部移动那个目录的文件。有人可以帮我吗?

1 个解决方案

#1


0  

mv BK-Voice-1110{695..708}.wav ../201501/ &

#1


0  

mv BK-Voice-1110{695..708}.wav ../201501/ &