查找文件并复制到指定位置

#!/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
posted @ 2020-10-10 16:52  bhxuwei  阅读(263)  评论(0编辑  收藏  举报