What is the output of the following command?
echo "Hello World" | tr -d aieou
What is the output of the following command?
echo "Hello World" | tr -d aieou
The tr command with the -d option is used to delete specific characters from the input. In the command echo "Hello World" | tr -d aieou, the characters 'a', 'i', 'e', 'o', and 'u' are specified to be deleted. Therefore, the input string "Hello World" will have all occurrences of these vowels removed, resulting in the output "Hll Wrld".
The output of the command echo "Hello World" | tr -d aieou is: C. Hll Wrld Explanation: The tr command is used to translate or delete characters. In this case, the -d option is used to delete (remove) the characters specified after it. The characters specified in this command are "a," "i," "e," "o," and "u." So, when the command is executed, it removes all occurrences of the letters "a," "i," "e," "o," and "u" from the input string "Hello World." As a result, the output becomes "Hll Wrld."