#/bin/bashYUAMFILE=$1MUDIFILE=/server/shiyan/mudi.txtAWKFILE=/server/shiyan/awk.txtdos2unix $YUAMFILE. /etc/init.d/functions>$MUDIFILEfor n in `grep -o "[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]" $YUAMFILE`doMD5=`echo -n $n|md5sum` echo "${n} ${MD5}" >> $MUDIFILE if [ $? -eq 0 ] then action " $n md5 " /bin/true else action "$n md5" /bin/false exit 1 fidonesleep 3>$AWKFILEawk -F"[ ]+" '{print $2}' $MUDIFILE >>$AWKFILE if [ $? -eq 0 ] then clear action " AWK IS OK " /bin/true else action "AWK NOT OK" /bin/false exit 1 fi