#!/bin/sh #需要计算MD5文件列表 # list=`ls` list="file list" for file in $list do file1=`find . -name $file | tail -n 1` echo "$file1" md5sum $file1 >> ./md5sum.txt done