The Unix sed command doesn't recognize a backslash escaped n \n
as a newline character. For instance, the command sed "s!,!\n!g"
is replacing commas in the input text with the letter n and not a newline character.
How can I make sed interpret \n
as a newline character?