#!/bin/bash #author:xiluhua #since:20160619 let v_count=0 while [ "1" = "1" ] do if [ $v_count -lt 5 ] then sleep 1 echo $v_count let v_count=$v_count+1 else echo "exit" break fi done
时间: 2024-10-10 15:30:55
#!/bin/bash #author:xiluhua #since:20160619 let v_count=0 while [ "1" = "1" ] do if [ $v_count -lt 5 ] then sleep 1 echo $v_count let v_count=$v_count+1 else echo "exit" break fi done