[root@yoon export]# vi gunzip.sh

!/bin/bash
path=/export/backup ----备份文件目录路径

for i in `ls ${path}/*`
do
/bin/gunzip $i
done

[root@yoon export]# chmod +x gunzip.sh

[root@yoon export]# sh gunzip.sh

==========================================

#!/bin/bash
#dir=/export/data/mysql/dumps/`date +%F -d yesterday`
dir=/export/data/mysql/dumps/`date +%F`
gunzip=$(find $dir -name "*.sql.gz")
for i in $gunzip
do
(gunzip $i) &
done

05-06 02:53