标签:shell安装进度显示
#!/bin/bash
b=‘‘
i=0
while [ $i -le 100 ]
do
printf "Mysql install :[ %-50s ]%d%%\r" $b $i
if [ $i -le "60" ]
then
sleep 0.03
echo; echo "Install httpd"
fi
sleep 0.01
i=`expr 2 + $i`
b=#$b
done
echo ; echo -e "\033[31m OK \033[0m"
标签:shell安装进度显示
原文地址:http://yasar.blog.51cto.com/9120455/1910615