编辑代码

  int=1
#  while(( $int<=5 ))
  while true
  do
    #多线程执行
    if [[ $int -eq 1 || $int%3 -eq 0 ]]; then
      echo "cpu_load_15min cpu_load_5min cpu_load_1min"
    fi
    sleep 1
    let "int++"
    echo $int
  done