##在桌面study目录中建立12个文件
[root@localhost Desktop]# mkdir study
[root@localhost Desktop]# touch /root/Desktop/study/WESTOS_class{1,2}_linux{1..6}
[root@localhost Desktop]# ls /root/Desktop/study/
WESTOS_class1_linux1 WESTOS_class1_linux5 WESTOS_class2_linux3
WESTOS_class1_linux2 WESTOS_class1_linux6 WESTOS_class2_linux4
WESTOS_class1_linux3 WESTOS_class2_linux1 WESTOS_class2_linux5
WESTOS_class1_linux4 WESTOS_class2_linux2 WESTOS_class2_linux6
##在/tmp/VERSION/中建立8个文件
[root@localhost Desktop]# mkdir /tmp/VERSION
[root@localhost Desktop]# touch /tmp/VERSION/redhat_virsion{1..8}
[root@localhost Desktop]# ls /tmp/VERSION/
redhat_virsion1 redhat_virsion3 redhat_virsion5 redhat_virsion7
redhat_virsion2 redhat_virsion4 redhat_virsion6 redhat_virsion8
##redhat_virsionX带有奇数的文件复制到桌面的SINGLE中
[root@localhost Desktop]# mkdir SINGLE;cp /tmp/VERSION/redhat_virsion{1,3,5,7} /root/Desktop/SINGLE
[root@localhost Desktop]# ls SINGLE/
redhat_virsion1 redhat_virsion3 redhat_virsion5 redhat_virsion7
[root@localhost Desktop]# ls /tmp/VERSION/
redhat_virsion1 redhat_virsion3 redhat_virsion5 redhat_virsion7
redhat_virsion2 redhat_virsion4 redhat_virsion6 redhat_virsion8
##redhat_virsionX带有偶数的文件复制到/DOUBLE中
[root@localhost Desktop]# mkdir /DOUBLE;cp /tmp/VERSION/redhat_virsion{2,4,6,8} /DOUBLE
[root@localhost Desktop]# ls /DOUBLE/
redhat_virsion2 redhat_virsion4 redhat_virsion6 redhat_virsion8
[root@localhost Desktop]# ls /tmp/VERSION/
redhat_virsion1 redhat_virsion3 redhat_virsion5 redhat_virsion7
redhat_virsion2 redhat_virsion4 redhat_virsion6 redhat_virsion8
##WESTOS_class1文件移动到CLASS1中
[root@localhost Desktop]# mkdir CLASS1;mv study/WESTOS_class1* CLASS1
[root@localhost Desktop]# ls CLASS1/
WESTOS_class1_linux1 WESTOS_class1_linux3 WESTOS_class1_linux5
WESTOS_class1_linux2 WESTOS_class1_linux4 WESTOS_class1_linux6
[root@localhost Desktop]# ls study/
WESTOS_class2_linux1 WESTOS_class2_linux3 WESTOS_class2_linux5
WESTOS_class2_linux2 WESTOS_class2_linux4 WESTOS_class2_linux6
##WESTOS_class2文件移动到CLASS2中
[root@localhost Desktop]# mkdir CLASS2;mv study/WESTOS_class2* CLASS2
[root@localhost Desktop]# ls study/
[root@localhost Desktop]# ls CLASS2
WESTOS_class2_linux1 WESTOS_class2_linux3 WESTOS_class2_linux5
WESTOS_class2_linux2 WESTOS_class2_linux4 WESTOS_class2_linux6
##删除所有新建文件
[root@localhost Desktop]# rm -rf * /DOUBLE /tmp/VERSION/*