cp文件计数12345678910#!/bin/bashFNUM=`ls -alLR testsrc | grep "^-" | wc -l`echo $FNUMcp -vrf testsrc testdst | awk '{ count += 1 printf("%d, %.2f%", count, 100*count/sum)}END {print ""}' count=0 sum=$FNUM