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

相關文章
相關標籤/搜索