全代碼都在這里 https://github.com/Tiakon/software-launch-script-cluster/tree/master/monitor-scipt 親測有效,喜歡的給個star吧
2018-05-25
#######creator bai
#!/bin/bash
#以mo開頭
i=0;
lv=$(ls | grep -v "^mo");
for scr_file in $lv
do
fp=$(echo -e "\e[1;35m" $scr_file $(tput sgr0));
echo "the script:" $i '===》' $fp
((i=i+1));
done
#!/bin/bash
#以mo開頭
i=0;
lv=$(ls | grep -v "^mo");
for scr_file in $lv
do
fp=$(echo -e "\e[1;35m" $scr_file $(tput sgr0));
echo "the script:" $i '===》' $fp
((i=i+1));
done
2018-02-02