首页 > Linux操作系统 > Linux操作系统 > Linux 批量解压gz包
[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
==========================================
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/28939273/viewspace-1135434/ ,如需转载,请注明出处,否则将追究法律责任。