TECHIES WORLD

For Techs.... Techniques.... Technologies....

CpanelLinux

How to insert a new line in Linux shell script

We can insert a new line in Linux shell script by using options of echo command.

For eg:

#echo -e "Test1\nTest2"

This will print output as,

Test1
Test2

That's all...

Leave a Reply