Home > Net >  What does the the flag -e mean when using echo
What does the the flag -e mean when using echo

Time:09-23

In a bash scrip I saw someone using echo -e "stuff" what does the -e do?

CodePudding user response:

I recommend you to google those stuff,

It used to make the echo understand form interpretation

like if you want to make a new line using "\n"

you have to do

echo -e "Hello\n"
# for do a sound alert 
echo -e "\a"
#for tap space
echo -e "\t"

and so on

  • Related