Thursday, August 7, 2008

echo -e

echo –e command allows interpreting backslash escapes

eg:- echo “Date and time is : \c”
Date

‘\c’ is used to print the output in the same line

eg:- echo “Have a nice day \n”
‘\n’ is used to make a new line after that.

No comments: