[root@localhost home]# tree
.
├── 1.log
├── 2.log
├── 3.c
├── 4.log
├── 7.c
└── test
2 directories, 4 files
[root@localhost home]# find -name "*.log" -exec mv {} test \;
[root@localhost home]# ls
3.c 7.c test
[root@localhost home]# tree
.
├── 3.c
├── 7.c
└── test
├── 1.log
├── 2.log
└── 4.log
2 directories, 4 files