#!/bin/sh

echo -n radio:
tput sc                                                                                                                  #保存当前光标位置
count=0
while true;
     do
         if [ $count -lt 10 ];then
             let count++;
             sleep 1;                                                                                                   #休眠1秒
             tput rc;                                                                                                   #取出当前光标位置
             tput ed
             #radia=`echo "scale=2;$count/10*100" | bc`
             #echo -n "$radia%";
             echo -n ". "
             tput sc
         else exit 0;
         fi
     done
echo
echo

相关文章:

  • 2021-08-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-15
猜你喜欢
  • 2021-06-18
  • 2021-10-10
  • 2021-11-08
  • 2021-06-11
  • 2021-12-27
  • 2022-12-23
相关资源
相似解决方案