shell 进度条

.点号进度显示ide

trap 'kill $bgPid;echo;exit' 1 2 3 15
dots() {
sec=$1
while true
    do
        echo -e ".\c"
        sleep $sec
done
}spa

dots 3 &
bgPid=$!
cp vmtemplate_20120514.tar.gz /opt/xen/p_w_picpaths
kill $bgPid>>/dev/null 2>&1it

相关文章
相关标签/搜索