Linux Bash Shell Print Move Cursor first of line

(Last Updated On: May 31, 2020)

 

echo -ne "First Text\rSecond Text"

 

Example

#!/bin/bash
echo
echo -ne "\r[ ] 밥먹자"
sleep 1
echo -ne "\r[✓] 먹었다"
echo

while true;
do
        # Nothing
        (( ))
done