当前位置:网站首页>shell第一个命令结果传入第二个命令删除
shell第一个命令结果传入第二个命令删除
2022-06-30 11:22:00 【诸葛钢铁云】
#!/bin/bash
bianliang=`kubectl get pods -n XXXXX|grep XXXXX | grep Evicted | awk -F ' ' '{print $1}'`
#echo $bianliang
for i in $bianliang:
do
# echo $i
kubectl delete pod $i -n XXXXX
if [ $? -eq 0 ];then
echo 'succeed'
fi
done
边栏推荐
- 如何通过GDB分析Native Crash
- The first batch in China! Alibaba cloud native data Lake products have passed the evaluation and certification of the ICT Institute
- 数学(快速幂)
- 一个悄然崛起的国产软件,低调又强大!
- Line generation (Gauss elimination method, linear basis)
- 相对位置编码Transformer的一个理论缺陷与对策
- Typescript readonlyarray (read only array type) details
- 线代(高斯消元法、线性基)
- It's time for the kotlin coroutine to schedule thread switching to solve the mystery
- Webview,ScrollView滑动冲突咋整
猜你喜欢
随机推荐
Stm32f407zgt6 uses SDIO mode to drive SD card
Database cascading operation
TypeScript ReadonlyArray(只读数组类型) 详细介绍
19年来最艰难的618,徐雷表达三个谢意
A quietly rising domestic software, low-key and powerful!
学习redis实现分布式锁—–自己的一个理解
A man is a Book
STM32F407ZGT6使用SDIO方式驱动SD卡
暑假学习记录
科普达人丨漫画图解什么是eRDMA?
EMC-浪涌
10 reasons for system performance failure
100 important knowledge points that SQL must master: grouping data
使用cookie技术实现历史浏览记录并控制显示的个数
14岁懂社会-《关于“工作的幸福”这件事儿》读书笔记
导致系统性能失败的10个原因
Dameng data rushes to the scientific innovation board, or becomes the "first share of domestic database" in the A-share market
孔松(信通院)-数字化时代云安全能力建设及趋势
Handler-源码分析
Alibaba cloud database represented by polardb ranks first in the world









