adding a rotating - to my bash script
I'm working on a script right now and I would like to add a rotating - after some of my echo text lines. It wouldn't have to really be linked to anything. I just want it there for eye candy purposes, and to show progress is being made. Does anyone have a link, tutorial, etc, that explains how to do this, or could tell me what this is called so I could look it up. Your help would be greatly appreciated.
|
Hi.
It's pretty simple. You can echo backspaces with '\b' if you use the -e flag with 'echo', and you can suppress the newlines after an echo with -n. Code:
echo -n "-" |
Well, it's generally called a 'spinner'. You can use the \b escape sequence with echo to make echo backspace over a previous character. For example:
Code:
#!/bin/bash |
Thank you so much, folks! :)
|
All times are GMT -5. The time now is 12:01 PM. |