• Uncategorized

About linux : What-does-the-the-flag–e-mean-when-using-echo

Question Detail

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

Question Answer

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

You may also like...

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.