Linux CLI - Pipes and Redirection
What will be the output of the following command?
echo "apple banana cherry" | tr ' ' '\n' | sort
echo "apple banana cherry" | tr ' ' '\n' | sort
echo "apple banana cherry" outputs the string. tr ' ' '\n' replaces spaces with new lines, so words become separate lines. sort sorts these lines alphabetically.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions