zoukankan      html  css  js  c++  java
  • zip-auto.sh

    #!/bin/sh
    #auto zip package
    #Define Path
    #####test########
    # mkdir -p /root/shell/test1 /root/shell/test2
    # cd /root/shell/test1 ; zip passwd.zip /etc/passwd
    #####test########
    PATH1=/root/shell/test1
    PATH2=/root/shell/test2
    #Print welcome info
    cat <<EOF
    ++--------------------------------------------------------++
    ++---------welcome to use auto zip scripts-------+
    ++--------------------------------------------------------++
    EOF

    #Find Dir all ZIP packages 查找目录PATH1下所有的zip包,并创建解压目录PATH2
    cd $PATH1
    for i in `find . -name "*.zip"|awk -F. '{print $2}' `
    do
    unzip -o .$i.zip -d $PATH2$i
    done

  • 相关阅读:
    css优化总结
    几种常用的图片格式
    css布局总结
    第四章复习题
    4.9,4.10
    4.8
    4.7指针
    libffi
    代理模式
    Redis 汇总
  • 原文地址:https://www.cnblogs.com/php-rearch/p/6289229.html
Copyright © 2011-2022 走看看