Linux CLI - Pipes and Redirection
What will be the output of this command?
echo "one two three" | tr ' ' '\n' | wc -l
echo "one two three" | tr ' ' '\n' | wc -l
echo "one two three" outputs the string. tr ' ' '\n' replaces spaces with new lines, making three lines. wc -l counts lines.wc -l counts 3 lines.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions