shell脚本之文件批量解压

shell脚本之文件批量解压

#!/bin/bash
ls  /tmp/install_file  > install_packge_name.log
        for i in `cat install_packge_name.log`  
                do   
                        tar -zxf $i -C /tmp/depress/  >> /dev/null      #解压到/tmp/depress文件
                done    

猜你喜欢

转载自blog.51cto.com/11342825/2422370