I want to make a short script, just for experimentation. For example, I run a command, for example
sudo apt-get install eclipse --yes
and instead of displaying a detailed command when installing it, display the download panel, for example ...... (dots only appear when they load or something like that)
I tried to do something like
apt=sudo apt-get install vlc --yes start() { $apt while $apt; do echo -n "." sleep 0.5 done } start
(what I intended to do was run the $ apt variable and then make it go to the while loop, and the while loop will determine if the command is running, so it replaces the verbose points during the execution of the command)
source share