find sourcePath/ -name "*.txt" -exec mv {} targetPath/ \;
#or
find sourcePath/ -type f -exec mv {} targetPath/ \;
举个例子
find ./Img/img_celeba -name "*.jpg" -exec mv {} ./image/ \;
find sourcePath/ -name "*.txt" -exec mv {} targetPath/ \;
#or
find sourcePath/ -type f -exec mv {} targetPath/ \;
举个例子
find ./Img/img_celeba -name "*.jpg" -exec mv {} ./image/ \;