<?xml version="1.0" encoding="windows-1252"?>
<node id="921353" title="Re: Removing double carriage return" created="2011-08-19 22:03:53" updated="2011-08-19 22:03:53">
<type id="11">
note</type>
<author id="421781">
Cristoforo</author>
<data>
<field name="doctext">
Use the file slurp &lt;strike&gt;argument&lt;/strike&gt; switch, '0'&lt;p&gt;
&lt;c&gt;perl -i.bak -0pe 's/\n\n/\n/g' inputtext &lt;/c&gt;
&lt;p&gt;&lt;b&gt;Update:&lt;/b&gt; I chose zero instead of octal 0777 thinking it would be clearer but GrandFather may have a good point, (a byte having possible values of 0 to 255 and the base 10 value of 0777 is 511). I guess I was thinking also that double zero, 00, is the switch for paragraph mode reading.</field>
<field name="root_node">
921345</field>
<field name="parent_node">
921345</field>
</data>
</node>
