I am currently trying to figure out how to make bash draw a series of dots across the screen (kind of like a progress indicator) until a command finishes executing. For example, say I want to draw dots for a wget download:
wget -s http://url.tar.gz
until "above command has finished executing"; do
echo -n "."
sleep 0.05s
done
Can I use "$!" or "$?" to help solve this?
Thank you for the help!