批量生成MD5文件 #! /bin/bash if [ -n "$1" ]; then DIR_ROOT="$1" else DIR_ROOT=$PWD fi end_with(){ echo $1 | grep $2 >/dev/null 2>&1 if [ $? -eq 0 ];then return 1 fi return 0 } dir_md5(){ if [ "$(ls -A $1)" ]; then declare -i i=0 declare -a my_array for fil…