resource_dir=/tmp/jobs20170711/jobs/*/config.xml
target_dir=/tmp/jobs20170711/bake
filelist=`ls $resource_dir`
for file in $filelist
do
res_file=`echo $file | awk -F "/" ‘{print $(NF-1)}‘`
echo $res_file
echo $file
cp $file $target_dir$res_file".config.xml"
done
时间: 2024-10-19 22:00:09