I was practicing echo command with option \r\r (carriage return) as below.
echo -e "This is \r my college"
echo -e "This is \r my college" output : my college
my college but when iI add one more word before \r\r as below
echo -e "This is the \r my college"
echo -e "This is the \r my college" Then it gives me output like : my college the Another
my college the Another example
echo -e "This is \r valid data" output: valid data
echo -e "This is not a \r valid data" output: valid data a
echo -e "This is \r valid data" valid data echo -e "This is not a \r valid data" valid data a so iSo, I wanted to know that what is the actual purpose of carriage return here?