Linux 进度条(非100%)列出unzip进度
unzip -q ./*.zip -d ./ &
while true;
do
echo -n ".";sleep 2;
MY_EXEC=ps -ef | grep unzip | grep -Evi grep
if [ "$MY_EXEC" = "" ]
then
break;
fi
done
echo -e "\n"
unzip -q ./*.zip -d ./ &
while true;
do
echo -n ".";sleep 2;
MY_EXEC=ps -ef | grep unzip | grep -Evi grep
if [ "$MY_EXEC" = "" ]
then
break;
fi
done
echo -e "\n"