<?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: Strange code in file in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/strange-code-in-file/m-p/3857503#M276089</link>
    <description>Hi:&lt;BR /&gt;&lt;BR /&gt;In lieu of 'dos2ux' you can use:&lt;BR /&gt;&lt;BR /&gt;# perl -pi.old -e 's/\r\n/\n/;s/\032//' file&lt;BR /&gt;&lt;BR /&gt;This eliminates not only the carriage-return (^M) but also an end-of-file "^Z" charcters found in Windows (DOS) files.&lt;BR /&gt;&lt;BR /&gt;A backup copy of your 'file' will be made as 'file.old'.  When done, 'file' will have been "repaired".&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
    <pubDate>Wed, 06 Sep 2006 05:23:06 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2006-09-06T05:23:06Z</dc:date>
    <item>
      <title>Strange code in file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/strange-code-in-file/m-p/3857498#M276084</link>
      <description>I use vi to edit a file , but suddenly found that there is a ^M at the end of each line , it heppens sometimes , can advise how to fix it , and delete this code in the file by one time ? thx .</description>
      <pubDate>Wed, 06 Sep 2006 02:28:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/strange-code-in-file/m-p/3857498#M276084</guid>
      <dc:creator>hangyu</dc:creator>
      <dc:date>2006-09-06T02:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Strange code in file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/strange-code-in-file/m-p/3857499#M276085</link>
      <description>Remove the ^M characters using dos2ux utility. See dos2ux(1) for details; for ex.&lt;BR /&gt;&lt;BR /&gt;# dos2ux infile &amp;gt; outfile</description>
      <pubDate>Wed, 06 Sep 2006 02:36:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/strange-code-in-file/m-p/3857499#M276085</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2006-09-06T02:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: Strange code in file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/strange-code-in-file/m-p/3857500#M276086</link>
      <description>Hi,&lt;BR /&gt;the control M is a sign of different interpretation of line termination, between Win and UNIX.&lt;BR /&gt;See:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=1014542" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=1014542&lt;/A&gt;</description>
      <pubDate>Wed, 06 Sep 2006 02:36:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/strange-code-in-file/m-p/3857500#M276086</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-09-06T02:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: Strange code in file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/strange-code-in-file/m-p/3857501#M276087</link>
      <description>thx  ,&lt;BR /&gt;&lt;BR /&gt;except use dos2ux , how to remove it in the file ? thx</description>
      <pubDate>Wed, 06 Sep 2006 03:38:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/strange-code-in-file/m-p/3857501#M276087</guid>
      <dc:creator>hangyu</dc:creator>
      <dc:date>2006-09-06T03:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: Strange code in file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/strange-code-in-file/m-p/3857502#M276088</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;you can simply erase it!&lt;BR /&gt;It is seen as one letter.&lt;BR /&gt;&lt;BR /&gt;But better is dos2ux.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;Volkmar&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Sep 2006 04:07:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/strange-code-in-file/m-p/3857502#M276088</guid>
      <dc:creator>V. Nyga</dc:creator>
      <dc:date>2006-09-06T04:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: Strange code in file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/strange-code-in-file/m-p/3857503#M276089</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;In lieu of 'dos2ux' you can use:&lt;BR /&gt;&lt;BR /&gt;# perl -pi.old -e 's/\r\n/\n/;s/\032//' file&lt;BR /&gt;&lt;BR /&gt;This eliminates not only the carriage-return (^M) but also an end-of-file "^Z" charcters found in Windows (DOS) files.&lt;BR /&gt;&lt;BR /&gt;A backup copy of your 'file' will be made as 'file.old'.  When done, 'file' will have been "repaired".&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Sep 2006 05:23:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/strange-code-in-file/m-p/3857503#M276089</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-09-06T05:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: Strange code in file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/strange-code-in-file/m-p/3857504#M276090</link>
      <description>Hi,&lt;BR /&gt;in Vi just type:&lt;BR /&gt;:%s/^M//g&lt;BR /&gt;&lt;BR /&gt;to obtain ^M type ctrl-V ctrl-M&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Art&lt;BR /&gt;</description>
      <pubDate>Thu, 07 Sep 2006 03:21:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/strange-code-in-file/m-p/3857504#M276090</guid>
      <dc:creator>Arturo Galbiati</dc:creator>
      <dc:date>2006-09-07T03:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: Strange code in file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/strange-code-in-file/m-p/3857505#M276091</link>
      <description>you can just remove them.&lt;BR /&gt;With sed.&lt;BR /&gt;sed 's/^M$//g' &amp;lt; your_file             &lt;BR /&gt;&lt;BR /&gt;# in bash/tcsh, press Ctrl-V then Ctrl-M&lt;BR /&gt;&lt;BR /&gt;Also keep this links handy , with one-liners&lt;BR /&gt;for sed. Quite nice&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.student.northpark.edu/pemente/sed/sed1line.txt" target="_blank"&gt;http://www.student.northpark.edu/pemente/sed/sed1line.txt&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 07 Sep 2006 03:45:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/strange-code-in-file/m-p/3857505#M276091</guid>
      <dc:creator>Frank de Vries</dc:creator>
      <dc:date>2006-09-07T03:45:08Z</dc:date>
    </item>
  </channel>
</rss>

