【linux学习】使用grep命令获取过滤的数据作为下个命令的入参 简单粗暴点 kubectl get pods -niot |grep iot-imei-report-rest|awk {'print $1'}|xargs kubectl logs -f -niot