[root@pc1 test2]# ls a.txt b.csv c.ped test_dir [root@pc1 test2]# ls test_dir/ [root@pc1 test2]# find ./ -name "*.txt" -o -name "*.ped" -exec cp {} test_dir/ \; [root@pc1 test2]# ls test_dir/ c.ped [root@pc1 test2]# rm test_dir/* [root@pc1 test2]# ls test_dir/ [root@pc1 test2]# find ./ \( -name "*.txt" -o -name "*.ped" \) -exec cp {} test_dir/ \; [root@pc1 test2]# ls test_dir/ a.txt c.ped
。