I want to write a shell script which does installation related task. I want to show some icon like rotating circle by printing characters |, /, \, -. Once the installation completes this circle will disappear. Any help on this would be appreciated.
Share
The accepted solution is overly complicated. You can just do:
(Note that subsecond sleeping is not portable, and neither is seq.)