<?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 how to search and replace  ^M in vi? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-search-and-replace-m-in-vi/m-p/2703174#M902238</link>
    <description>Hi,experts,&lt;BR /&gt;&lt;BR /&gt;   I have file in hp unix box , for comvenience, I ftp to window, edit it , and ftp it back to unixbox, i find ^M appear in the end of each line, how delete it in vi?&lt;BR /&gt;&lt;BR /&gt;   another question : if the vi said the line is too long for edit and does not display for edit, what to do?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Sunny&lt;BR /&gt;   &lt;BR /&gt;</description>
    <pubDate>Mon, 15 Apr 2002 02:00:48 GMT</pubDate>
    <dc:creator>faust2004</dc:creator>
    <dc:date>2002-04-15T02:00:48Z</dc:date>
    <item>
      <title>how to search and replace  ^M in vi?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-search-and-replace-m-in-vi/m-p/2703174#M902238</link>
      <description>Hi,experts,&lt;BR /&gt;&lt;BR /&gt;   I have file in hp unix box , for comvenience, I ftp to window, edit it , and ftp it back to unixbox, i find ^M appear in the end of each line, how delete it in vi?&lt;BR /&gt;&lt;BR /&gt;   another question : if the vi said the line is too long for edit and does not display for edit, what to do?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Sunny&lt;BR /&gt;   &lt;BR /&gt;</description>
      <pubDate>Mon, 15 Apr 2002 02:00:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-search-and-replace-m-in-vi/m-p/2703174#M902238</guid>
      <dc:creator>faust2004</dc:creator>
      <dc:date>2002-04-15T02:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to search and replace  ^M in vi?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-search-and-replace-m-in-vi/m-p/2703175#M902239</link>
      <description>Hi Sunny,&lt;BR /&gt;&lt;BR /&gt;There are special tools for converting files&lt;BR /&gt;from Unix to DOS and back again. They&lt;BR /&gt;are 'dos2ux' and 'ux2dos'&lt;BR /&gt;&lt;BR /&gt;There is a man page detailing both commands.&lt;BR /&gt;&lt;BR /&gt;Using these two utilities, there is no need &lt;BR /&gt;to try and edit them using vi.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;~Michael~</description>
      <pubDate>Mon, 15 Apr 2002 02:21:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-search-and-replace-m-in-vi/m-p/2703175#M902239</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2002-04-15T02:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: how to search and replace  ^M in vi?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-search-and-replace-m-in-vi/m-p/2703176#M902240</link>
      <description>within vi you could use&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;:%s/^M//g&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;note that the ^M is formed by pressing &lt;CTRL-V&gt;&lt;CTRL-M&gt;&lt;/CTRL-M&gt;&lt;/CTRL-V&gt;</description>
      <pubDate>Mon, 15 Apr 2002 02:30:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-search-and-replace-m-in-vi/m-p/2703176#M902240</guid>
      <dc:creator>Scott Van Kalken</dc:creator>
      <dc:date>2002-04-15T02:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: how to search and replace  ^M in vi?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-search-and-replace-m-in-vi/m-p/2703177#M902241</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Without using vi, you can also do:&lt;BR /&gt;&lt;BR /&gt;# cat dosfile | col -b &amp;gt; unixfile&lt;BR /&gt;&lt;BR /&gt;OR:&lt;BR /&gt;&lt;BR /&gt;# strings dosfile &amp;gt; unixfile&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong</description>
      <pubDate>Mon, 15 Apr 2002 04:40:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-search-and-replace-m-in-vi/m-p/2703177#M902241</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2002-04-15T04:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: how to search and replace  ^M in vi?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-search-and-replace-m-in-vi/m-p/2703178#M902242</link>
      <description>You files have this ^M at the end of each line because you are FTP'ing the file from Unix to Dos in Binary mode.&lt;BR /&gt;Switch to Ascii mode (type 'asc' at the ftp prompt) before sending text files, and you won't have this problem.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.</description>
      <pubDate>Mon, 15 Apr 2002 05:36:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-search-and-replace-m-in-vi/m-p/2703178#M902242</guid>
      <dc:creator>Deepak Extross</dc:creator>
      <dc:date>2002-04-15T05:36:53Z</dc:date>
    </item>
  </channel>
</rss>

