shell 实现进度条

#!/bin/sh sleep 10 & pid=$! # Process Id of the previous running command spin='-\|/' i=0 while kill -0 $pid 2>/dev/null do i=$(( (i+1) %4 )) printf "\
posted @ 2022-01-13 17:10  小清澈  阅读(961)  评论(0编辑  收藏  举报