0
点赞
收藏
分享

微信扫一扫

shell脚本解压多个文件


shell脚本解压多个文件_压缩包


#!/bin/bash
#查询压缩包出来,然后解压
cd /root/
ls *.tar.gz > ls.log
ls *.tgz >> ls.log
data=$(cat ls.log)
for i in $data
do
#echo $i
tar -zxf $i & > /dev/null
done
rm -rf ls.log



举报

相关推荐

0 条评论