本身編寫的一個巡檢Linux進程的Shell腳本

#/bin/bash HINT(){ read -p "Press Enter tocontiune:" } CHECK_A(){ ps -ef |grep cxiang|awk '{for(i=1;i<=7;i++)$i="";print}' < text1 #使用grep與awk對進程進行篩選處理導到text1中。 sed '/^.*/s/ //g' text1 >text3 #刪除t
相關文章
相關標籤/搜索