查找文件并复制到指定位置
#!/bin/bash
sourFolder="/home/xuwei/video_zimu/data/"
targetFolder="/home/xuwei/video_zimu/zimu_file/"
for file in `ls | find ${sourFolder} -name '*.srt'` ; do
echo "----------processing file is $file-----------"
cp $file $targetFolder
echo "---------------------------------------------"
done