Difference between revisions of "OPS435 Lab 5 - Bash"
(Created page with 'Write a bash script that will show a working progress bar on the command-line. The bar should fill up from empty to 100% in 5 seconds. 100% is 60 '''=''' signs. For example it …') |
|||
(One intermediate revision by the same user not shown) | |||
Line 7: | Line 7: | ||
'''******************************______________________________ (50%)''' | '''******************************______________________________ (50%)''' | ||
− | The drawing of the bar should be done in at least one function. Hint: you can use the echo command with a special character to move the cursor back. Also go back to [[ | + | The drawing of the bar should be done in at least one function. Hint: you can use the echo command with a special character to move the cursor back. Also go back to [[OPS435_Lecture_3_-_Bash]] to get a reminder about arithmetic in bash. |
But you may use other characters that you think may look better. | But you may use other characters that you think may look better. |
Latest revision as of 12:34, 22 August 2017
Write a bash script that will show a working progress bar on the command-line.
The bar should fill up from empty to 100% in 5 seconds. 100% is 60 = signs.
For example it could look like this:
******************************______________________________ (50%)
The drawing of the bar should be done in at least one function. Hint: you can use the echo command with a special character to move the cursor back. Also go back to OPS435_Lecture_3_-_Bash to get a reminder about arithmetic in bash.
But you may use other characters that you think may look better.