简单粗暴点

 

kubectl get pods  -niot |grep iot-imei-report-rest|awk {'print $1'}|xargs  kubectl logs  -f -niot

【linux学习】使用grep命令获取过滤的数据作为下个命令的入参

 

相关文章:

  • 2021-05-19
  • 2021-10-07
  • 2021-06-19
  • 2022-02-16
  • 2022-12-23
  • 2021-10-09
  • 2022-12-23
猜你喜欢
  • 2021-09-08
  • 2022-12-23
  • 2021-11-27
  • 2022-12-23
  • 2022-12-23
  • 2021-12-08
  • 2022-12-23
相关资源
相似解决方案