日期:2014-05-16 浏览次数:20914 次
for file in A/*; do fileName=`basename $file` cmp -s A/$fileName B/$fileName if [ $? != 0 ]; then cp A/$fileName C/A_$fileName cp A/$fileName C/B_$fileName fi done