What role does xargs play in cat fruits.txt | xargs echo?
xargs
cat fruits.txt | xargs echo
It converts standard-input items into arguments for echo.
echo
It rewrites fruits.txt so every item is on one line.
fruits.txt
It counts input lines and passes only the count to echo.
It alphabetically sorts the fruit names before echoing them.