I'm trying to replace spaces with newlines using sed(), and I thought this should work:-
What am I doing wrong?
echo 123 abc xyz | sed 's/ /\r/g'
but I get thisinstead of123rabcrxyz
123
abc
xyz
What am I doing wrong?