0

What is the difference between running the echo command with argument passed in quotes v/s without quotes?

echo -e hi\n    # Output = hin
echo -e "hi\n"  # output = hi  (with extra new line)
echo -e hi\\n   # output = hi  (with extra new line)

I want to understand the difference between the above 3 commands and how the bash interprets them?

P.S - I am trying to explore the echo command with the option -e

0 Answers0