Skip to main content
2 of 5
added 76 characters in body
Dip
  • 740
  • 3
  • 9
  • 13

Carriage return with echo command

I was practicing echo command with option \r (carriage return) as below.

echo -e "This is \r my college"

output : my college

but when i add one more word before \r as below

echo -e "This is the \r my college"

Then it gives me output like : my college the

so i wanted to know that what is the actual purpose of carriage return here?

Dip
  • 740
  • 3
  • 9
  • 13