'Move cursor back to first column in shell script
I am beggining in shell script, which does some simple stuff. I have only a simple question:
After a printf, the cursor stays in a specific position of the screen. I want it to go back to the first column, on the same line, so I can use printf again on the same line. What is the best way to do this?
Thanks a lot, R.
Solution 1:[1]
Add \r to the end of the format string.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | n. 1.8e9-where's-my-share m. |
