We have moved to www.dataGenX.net, Keep Learning with us.

Monday, October 13, 2014

\n not creating new line in Linux

When we are using Linux, Some Shell are quite good to understand the Escape characters we want to print but some are not.

This is how we have to make them understood these characters -

$ echo "Atul \n Singh"
Atul \n Singh

we need to add '-e' ('echo' command option) with 'echo' command -

$ echo -e "Atul \n Singh"

Like the Facebook Page & join Group

For WHATSAPP group , drop a msg to 91-88-00-906098

No comments :

Post a Comment