<?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: Control chars displaying while doing a vi in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/control-chars-displaying-while-doing-a-vi/m-p/2500106#M882986</link>
    <description>A better solution would be to ftp the file as ascii.  The ^M are carriage returns.  If you ftp the file as ascii, it will automatically convert the carriage return to a newline which is what unix uses.&lt;BR /&gt;&lt;BR /&gt;Hope this helps...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;...jcd...</description>
    <pubDate>Fri, 02 Mar 2001 14:29:20 GMT</pubDate>
    <dc:creator>Joseph C. Denman</dc:creator>
    <dc:date>2001-03-02T14:29:20Z</dc:date>
    <item>
      <title>Control chars displaying while doing a vi</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/control-chars-displaying-while-doing-a-vi/m-p/2500102#M882982</link>
      <description>Whenever I transfer a file created in Windows Notepad to Unix and edit the file, a ^M appears at the end of each line(representing a carriage return).  How do I get rid of those during my vi session?</description>
      <pubDate>Thu, 01 Mar 2001 22:28:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/control-chars-displaying-while-doing-a-vi/m-p/2500102#M882982</guid>
      <dc:creator>N. Hanson</dc:creator>
      <dc:date>2001-03-01T22:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Control chars displaying while doing a vi</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/control-chars-displaying-while-doing-a-vi/m-p/2500103#M882983</link>
      <description>If you're using FTP to do the transfer of text files, then you should use use the ascii transfer mode not binary.&lt;BR /&gt;&lt;BR /&gt;To get rid of those ^M characters run your file through the dos2ux utility&lt;BR /&gt;&lt;BR /&gt;# dos2ux filename &amp;gt; newfilename&lt;BR /&gt;&lt;BR /&gt;The reason you see the ^M is because of the difference in the way Windows handles the en-of-line character.  In Windows, it is actually comprised of two characters a carriage return (CR) followed by a line feed (LF), whereas in Unix the end of line character is simply a LF.</description>
      <pubDate>Thu, 01 Mar 2001 22:38:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/control-chars-displaying-while-doing-a-vi/m-p/2500103#M882983</guid>
      <dc:creator>James A. Donovan</dc:creator>
      <dc:date>2001-03-01T22:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: Control chars displaying while doing a vi</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/control-chars-displaying-while-doing-a-vi/m-p/2500104#M882984</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;...And if you forget to run dos2ux before executing vi, do this last line mode command:&lt;BR /&gt;&lt;BR /&gt;:%s/^m//&lt;BR /&gt;&lt;BR /&gt;It substitutes the ^m on each line with nothing.  To get the ^m into vi, press the ctrl key and hold it down.  Then press the v key, release, then the m key, release the m and then the ctrl key.  This ^v trick will work for any control character you wish to embed into your document.&lt;BR /&gt;&lt;BR /&gt;--Bruce</description>
      <pubDate>Fri, 02 Mar 2001 03:02:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/control-chars-displaying-while-doing-a-vi/m-p/2500104#M882984</guid>
      <dc:creator>Bruce Regittko_1</dc:creator>
      <dc:date>2001-03-02T03:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Control chars displaying while doing a vi</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/control-chars-displaying-while-doing-a-vi/m-p/2500105#M882985</link>
      <description>Bruce is right.  I've been doing it that way for years.  Another option is if you need to automate it a little.  You could make a script that removes the control-M.  &lt;BR /&gt;&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;# myscript&lt;BR /&gt;cat $1 | tr -d "\015" &amp;gt; ${1}.no_em&lt;BR /&gt;mv ${1}.no_em ${1}&lt;BR /&gt;The \015 is octal for the control-M.  tr is the transliterate command. &lt;BR /&gt;Steve.&lt;BR /&gt;</description>
      <pubDate>Fri, 02 Mar 2001 12:13:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/control-chars-displaying-while-doing-a-vi/m-p/2500105#M882985</guid>
      <dc:creator>Steve Post</dc:creator>
      <dc:date>2001-03-02T12:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: Control chars displaying while doing a vi</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/control-chars-displaying-while-doing-a-vi/m-p/2500106#M882986</link>
      <description>A better solution would be to ftp the file as ascii.  The ^M are carriage returns.  If you ftp the file as ascii, it will automatically convert the carriage return to a newline which is what unix uses.&lt;BR /&gt;&lt;BR /&gt;Hope this helps...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;...jcd...</description>
      <pubDate>Fri, 02 Mar 2001 14:29:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/control-chars-displaying-while-doing-a-vi/m-p/2500106#M882986</guid>
      <dc:creator>Joseph C. Denman</dc:creator>
      <dc:date>2001-03-02T14:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: Control chars displaying while doing a vi</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/control-chars-displaying-while-doing-a-vi/m-p/2500107#M882987</link>
      <description>Hi,&lt;BR /&gt;Please use dos2ux command to convert dos file to unix file&lt;BR /&gt;&lt;BR /&gt;#dos2ux dosfile &amp;gt; unixfile&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Sat, 03 Mar 2001 04:58:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/control-chars-displaying-while-doing-a-vi/m-p/2500107#M882987</guid>
      <dc:creator>Printaporn_1</dc:creator>
      <dc:date>2001-03-03T04:58:19Z</dc:date>
    </item>
  </channel>
</rss>

