Escape new line in Unix shell script

To escape new line in Unix shell script, use -n

Example:-
If you write script-

echo "Our Techno Bytes"
echo "is a techno page"

Output:- Our Techno Bytes
is a techno page


If you write script-

echo -n "Our Techno Bytes"
echo "is a techno page"

Output- Our Techno Bytes is a techno page

Popular Posts