Can tr replace one character with two characters?
I am trying to replace \"~\" with \"~\\n\" but the output does not produce the newline.
$ echo \"a
echo "asdlksad ~ adlkajsd ~ 12345" | sed 's/~/~|/g' | tr '|' '\n'
--This will work perfect, since sed having a problem replacing \n