Which two among the following would help you achieve this task without effecting the content of echo command?

As root you execute the following command:

echo “Good\nMorning\nSmith”
You find the two newline characters in the output and do not want them to appear in the output.
Which two among the following would help you achieve this task without effecting the content of
echo command? (Choose two.)

As root you execute the following command:

echo “Good\nMorning\nSmith”
You find the two newline characters in the output and do not want them to appear in the output.
Which two among the following would help you achieve this task without effecting the content of
echo command? (Choose two.)

A.
echo -e “Good\nMorning\nSmith”

B.
echo -n “Good\nMorning\nSmith”

C.
echo -E “Good\nMorning\nSmith”

D.
echo -ne “Good\nMorning\nSmith”

E.
echo -nE “Good\nMorning\nSmith”

F.
echo -eE “Good\nMorning\nSmith”

Explanation:



Leave a Reply 0

Your email address will not be published. Required fields are marked *