printf "line one\n"
printf "line two\n"
After these printouts I want to replace line one and print something else
(without using clear). I've tried commands like:
printf "line one\n"
printf "line two\r"
It's not what I want because it replaces the last line line two, not line one.
What I want to do:
printf "line one\n"
printf "line two\n"
sleep 0.5
somecode "line three"
Output I want:
line three
line two