I looked at a very similar question but was unable to resolve the issue Replace comma with newline in sed
I am trying to convert : characters in a strin
:
echo 'this:is:a:test' | tr : \\n
Any POSIX-compliant tr will support the \n escape sequence. You need to take care to quote or escape the escape sequence, however (double backslash above).
\n
The -e argument to echo has no effect on your argument to echo.
-e