Replace literal "\r\n" in text file
<p>I am trying to replace each <code>\r\n</code> in a text file with <code>&lt;p/&gt;</code>.</p>

<p>I have tried the following with no luck:</p>

<pre><code>sed 's#\r\n#&lt;p/&gt;#g' test.txt
sed 's#\r\n#&lt;p/&gt;#g' test.txt
sed 's#/\r/\n#&lt;p/&gt;#g' test.txt
sed ':a;N;$!ba;s/\r\n/&lt;p/&gt;/g' test.txt
</code></pre>

<p>Here is the text in <code>text.txt</code></p>

<pre><code>https://www.pivotaltracker.com/story/\r\nhttps://www.pivotaltracker.com/story\r\n\r\nSome business text.\r\n\r\nSome business text. Task 123 is still a work in progress but we wanted it in develop to keep everything updated.
</code></pre>