未古其人

目录

批量解压缩

#!/bin/bash
inputPara=$1
pkgNames=("racoam" "siteoam" "nodeoam")


for pkgName in ${pkgNames[@]}
do
    if [[ $pkgName == $inputPara || $inputPara == "" ]]
    then
        rm -rf $pkgName
        mkdir $pkgName
        tar -zxvf $pkgName*.tgz -C $pkgName
    fi
done