-4

could anyone help me out with the relevant output of the following code snippet

echo -e "33[31m Hello World]"

I wish to print hello world in red in this case.

chris85
  • 23,846
  • 7
  • 34
  • 51
Jasika
  • 25
  • 2
  • Where does PHP come into this question? – OneCricketeer Nov 10 '15 at 04:44
  • 1
    Isn't this bash's `echo`, not PHP's? http://www.linfo.org/echo.html Maybe this thread would be useful for you, http://stackoverflow.com/questions/5947742/how-to-change-the-output-color-of-echo-in-linux. – chris85 Nov 10 '15 at 04:45

1 Answers1

1
echo -e "\033[31m Hello World\e[0m"

Though you should

  • rename your question
  • use google
Zermingore
  • 743
  • 2
  • 11
  • 28