<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: replacing special characters with sed in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/replacing-special-characters-with-sed/m-p/5061249#M94236</link>
    <description>Hi Scott:&lt;BR /&gt;&lt;BR /&gt;# perl -pe 's/^\015\014\015\014/\015\014/' file&lt;BR /&gt;&lt;BR /&gt;...or to update in-place:&lt;BR /&gt;&lt;BR /&gt;# perl -pi.old -e 's/^\015\014\015\014/\015\014/' file&lt;BR /&gt;&lt;BR /&gt;...which will preserve a copy of "file" as "file.old".&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Thu, 02 Aug 2007 10:50:24 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2007-08-02T10:50:24Z</dc:date>
    <item>
      <title>replacing special characters with sed</title>
      <link>https://community.hpe.com/t5/operating-system-linux/replacing-special-characters-with-sed/m-p/5061247#M94234</link>
      <description>I'm befuddled!!!&lt;BR /&gt;&lt;BR /&gt;I have a file that I'm having issues with special characters.  Each new "entry" in the file begins with a ^M^L (when viewed in vi).  For some reason, every now and then, there is an extra ^M^L, so the line starts with ^M^L^M^L  I don't need the second sequence.&lt;BR /&gt;&lt;BR /&gt;I tried using sed as follows:&lt;BR /&gt;sed s/^M^L^M^L/^M^L/g file1 &amp;gt; file2&lt;BR /&gt;&lt;BR /&gt;That isn't working.  Any pointers??&lt;BR /&gt;&lt;BR /&gt;Scott</description>
      <pubDate>Thu, 02 Aug 2007 10:31:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/replacing-special-characters-with-sed/m-p/5061247#M94234</guid>
      <dc:creator>Scott Guy_2</dc:creator>
      <dc:date>2007-08-02T10:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: replacing special characters with sed</title>
      <link>https://community.hpe.com/t5/operating-system-linux/replacing-special-characters-with-sed/m-p/5061248#M94235</link>
      <description>Hey&lt;BR /&gt;&lt;BR /&gt;Check dos2ux:&lt;BR /&gt;&lt;BR /&gt;#dos2ux file &amp;gt; file2&lt;BR /&gt;&lt;BR /&gt;hope this works&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Thu, 02 Aug 2007 10:43:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/replacing-special-characters-with-sed/m-p/5061248#M94235</guid>
      <dc:creator>Oviwan</dc:creator>
      <dc:date>2007-08-02T10:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: replacing special characters with sed</title>
      <link>https://community.hpe.com/t5/operating-system-linux/replacing-special-characters-with-sed/m-p/5061249#M94236</link>
      <description>Hi Scott:&lt;BR /&gt;&lt;BR /&gt;# perl -pe 's/^\015\014\015\014/\015\014/' file&lt;BR /&gt;&lt;BR /&gt;...or to update in-place:&lt;BR /&gt;&lt;BR /&gt;# perl -pi.old -e 's/^\015\014\015\014/\015\014/' file&lt;BR /&gt;&lt;BR /&gt;...which will preserve a copy of "file" as "file.old".&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 02 Aug 2007 10:50:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/replacing-special-characters-with-sed/m-p/5061249#M94236</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-08-02T10:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: replacing special characters with sed</title>
      <link>https://community.hpe.com/t5/operating-system-linux/replacing-special-characters-with-sed/m-p/5061250#M94237</link>
      <description>How did you type in the control characters? Hold down Ctrl-V then type M to get ^M. Similarly to get ^L hold down Ctrl-V and then type L i.e.&lt;BR /&gt;&lt;BR /&gt;sed 's/&lt;CTRL-V m=""&gt;&lt;CTRL-V l=""&gt;&lt;CTRL-V m=""&gt;&lt;CTRL-V l=""&gt;/&lt;CTRL-V m=""&gt;&lt;CTRL-V l=""&gt;/g' infile&lt;/CTRL-V&gt;&lt;/CTRL-V&gt;&lt;/CTRL-V&gt;&lt;/CTRL-V&gt;&lt;/CTRL-V&gt;&lt;/CTRL-V&gt;</description>
      <pubDate>Thu, 02 Aug 2007 11:04:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/replacing-special-characters-with-sed/m-p/5061250#M94237</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2007-08-02T11:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: replacing special characters with sed</title>
      <link>https://community.hpe.com/t5/operating-system-linux/replacing-special-characters-with-sed/m-p/5061251#M94238</link>
      <description>That was exactly it Sandman.&lt;BR /&gt;&lt;BR /&gt;Thanks to everyone for their assistance.</description>
      <pubDate>Thu, 02 Aug 2007 11:06:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/replacing-special-characters-with-sed/m-p/5061251#M94238</guid>
      <dc:creator>Scott Guy_2</dc:creator>
      <dc:date>2007-08-02T11:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: replacing special characters with sed</title>
      <link>https://community.hpe.com/t5/operating-system-linux/replacing-special-characters-with-sed/m-p/5061252#M94239</link>
      <description>Question answered by replies</description>
      <pubDate>Thu, 02 Aug 2007 11:07:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/replacing-special-characters-with-sed/m-p/5061252#M94239</guid>
      <dc:creator>Scott Guy_2</dc:creator>
      <dc:date>2007-08-02T11:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: replacing special characters with sed</title>
      <link>https://community.hpe.com/t5/operating-system-linux/replacing-special-characters-with-sed/m-p/5061253#M94240</link>
      <description>&amp;gt;That was exactly it Sandman.&lt;BR /&gt;&lt;BR /&gt;The last time there was a thread about ^M, there was no way to enter it in a real shell but you could enter it in vi.&lt;BR /&gt;&lt;BR /&gt;Did you have any problems in a shell?</description>
      <pubDate>Fri, 03 Aug 2007 04:14:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/replacing-special-characters-with-sed/m-p/5061253#M94240</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-08-03T04:14:10Z</dc:date>
    </item>
  </channel>
</rss>

