nerdexam
Oracle

1Z0-409 · Question #79

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…

The correct answer is A. echo -e "Good\nMorning\nSmith" D. echo -ne "Good\nMorning\nSmith". See the full explanation below for the reasoning.

Question

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.)

Options

  • Aecho -e "Good\nMorning\nSmith"
  • Becho -n "Good\nMorning\nSmith"
  • Cecho -E "Good\nMorning\nSmith"
  • Decho -ne "Good\nMorning\nSmith"
  • Eecho -nE "Good\nMorning\nSmith"
  • Fecho -eE "Good\nMorning\nSmith"

How the community answered

(36 responses)
  • A
    78% (28)
  • B
    6% (2)
  • C
    11% (4)
  • E
    3% (1)
  • F
    3% (1)

Community Discussion

No community discussion yet for this question.

Full 1Z0-409 Practice