其实在shell里,无法同时获取两个参数入参,需一点其他的
while read -r line
do
echo $line
str1=`echo $line|awk '{print $1}'`
echo $str1
str2=`echo $line|awk '{print $2}'`
echo $str2
kubectl delete pod -n $str1 $str2 --force --grace-period=0
done < /tmp/TerminatingList.txt
例如这样