|
[php]
#!/bin/sh
clear
tput cup 3 0 ;echo -n "|";tput cup 3 101 ;echo -n "|"
c=1
while [ $c -le 99 ];do
tput cup 3 $c;echo -n "=>"
c=`expr $c + 1`
tput cup 3 103; echo -n $c"%"
if [ $c == 100 ];then
tput cup 3 103; echo -n "完成!"
fi
sleep 0.3
done
echo
[/php] |
|