#!/bin/bash
python3 ./decompress.py --input_file=$1
path1=`dirname $1`
path2='test.txt'
path3='/'
echo $path1$path3$path2
dir=`cat $path1$path3$path2`
#echo $dir
cp ./TEC $dir
s='/TEC'
cd $dir
./TEC
tar -cvf $2 input* out*
运行 TEC.sh程序:
bash TEC.sh s1 s2
TEC.sh对应 $0,s1对应$1 ,$2对应参数s2