shell命令 2018-03-01 linux 123456789101112131415#!bin/sh#md5当前目录所有xxx.sql=>xxx.sql.md5for file in *do if test -f $file then fName=${file%.*} fSuffix=${file##*.} if [ "$fSuffix" = "sql" ] then md5sum $file | cut -d ' ' -f 1 > "$file".md5 fi fi done Prev memcached、redis比较 Next grep命令