#! /bin/bash sleep 5 & pid=$! i=1 sp="\|/-" while ps -p $pid > /dev/null do printf "\b%c" "${sp:i++%4:1}" sleep 0.1 done printf "\nDone!\n"
https://www.baeldung.com/linux/bash-show-spinner-long-tasks
posted by Alessandro Migliaccio at 2:41 AM
Post a Comment
<< Home
View my complete profile
0 Comments:
Post a Comment
<< Home