if I want to replace "X" with new line, on Linux I do:
echo aaaXbbb | sed 's/X/\n/g'
Which is what I want to do.
On Solaris I do same and get:
output stream I don't get newline but letter "n".
Tried /usr/bin/sed and /usr/xpg4/bin/sed with same results.
Any idea how to replace something with newline ?