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
echo
andprintf
– glenn jackman Nov 13 '20 at 14:49echo -e
andecho
andprintf
in general: https://unix.stackexchange.com/questions/65803/why-is-printf-better-than-echo – thanasisp Nov 13 '20 at 16:41