Lets say i have a text:
"this\n is >\n<"
and i want to replace the newline with none which will result in:
"this\n is ><"
How to achieve this ?
i tried using the following:
echo "this\n is >\n<" | sed -e 's/>\n<//g'
But it didn't work out. Any help would be appreciated.
Escape
\
with\
:Output: