<?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: vi question in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-question/m-p/3810305#M268166</link>
    <description>thank you guys!</description>
    <pubDate>Thu, 22 Jun 2006 00:21:58 GMT</pubDate>
    <dc:creator>Igor Sovin</dc:creator>
    <dc:date>2006-06-22T00:21:58Z</dc:date>
    <item>
      <title>vi question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-question/m-p/3810298#M268159</link>
      <description>Hi!&lt;BR /&gt;How to delete the last symbol of each strings in the whole file?</description>
      <pubDate>Wed, 21 Jun 2006 23:22:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-question/m-p/3810298#M268159</guid>
      <dc:creator>Igor Sovin</dc:creator>
      <dc:date>2006-06-21T23:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: vi question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-question/m-p/3810299#M268160</link>
      <description>Igor,&lt;BR /&gt;&lt;BR /&gt;You can use sed as well ,&lt;BR /&gt;Check out this :&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;vi Reference&lt;BR /&gt;&lt;A href="http://www.cis.ksu.edu/~bhoward/vi/vi60.html" target="_blank"&gt;http://www.cis.ksu.edu/~bhoward/vi/vi60.html&lt;/A&gt;&lt;BR /&gt;--------------------------------------------&lt;BR /&gt;&lt;BR /&gt;sed Reference:&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;--------------&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Raj.</description>
      <pubDate>Wed, 21 Jun 2006 23:34:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-question/m-p/3810299#M268160</guid>
      <dc:creator>Raj D.</dc:creator>
      <dc:date>2006-06-21T23:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: vi question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-question/m-p/3810300#M268161</link>
      <description>I need to delete ^M symbol at the end of the each line, but vi interpretes ^M as one symbol and when I type ^M in my substitution construction I can only type it as two symbols ^ and M, so pattern doesnt match. Thats the problem.</description>
      <pubDate>Wed, 21 Jun 2006 23:53:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-question/m-p/3810300#M268161</guid>
      <dc:creator>Igor Sovin</dc:creator>
      <dc:date>2006-06-21T23:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: vi question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-question/m-p/3810301#M268162</link>
      <description>Hi Posatskov,&lt;BR /&gt;Use this command.&lt;BR /&gt;&lt;BR /&gt;#dos2ux filename filename&lt;BR /&gt;&lt;BR /&gt;for further reference please have a look on the following link.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/B2355-90689/dos2ux.1.html" target="_blank"&gt;http://docs.hp.com/en/B2355-90689/dos2ux.1.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Asif Sharif</description>
      <pubDate>Thu, 22 Jun 2006 00:04:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-question/m-p/3810301#M268162</guid>
      <dc:creator>Asif Sharif</dc:creator>
      <dc:date>2006-06-22T00:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: vi question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-question/m-p/3810302#M268163</link>
      <description>Hi Igor, &lt;BR /&gt;&lt;BR /&gt;To delete ^M, you can use the following, &lt;BR /&gt;&lt;BR /&gt;# strings &lt;OLDFILE&gt; &lt;NEWFILE&gt; &lt;BR /&gt;&lt;BR /&gt;# sed 's(ctrl v ctrl m)g//g' old.file &amp;gt; new.file &lt;BR /&gt;&lt;BR /&gt;-Arun&lt;/NEWFILE&gt;&lt;/OLDFILE&gt;</description>
      <pubDate>Thu, 22 Jun 2006 00:07:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-question/m-p/3810302#M268163</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2006-06-22T00:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: vi question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-question/m-p/3810303#M268164</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;In additioto to dos2unix in vi:&lt;BR /&gt;&lt;BR /&gt;In order to insert ctrl-character use:&lt;BR /&gt;CTRL-V CTRL-CHTR.&lt;BR /&gt;I your case :&lt;BR /&gt;vi file, &lt;BR /&gt;:%s/CTRL-VCTRL-M$//&lt;BR /&gt;:wq&lt;BR /&gt;&lt;BR /&gt;HTH</description>
      <pubDate>Thu, 22 Jun 2006 00:08:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-question/m-p/3810303#M268164</guid>
      <dc:creator>Victor Fridyev</dc:creator>
      <dc:date>2006-06-22T00:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: vi question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-question/m-p/3810304#M268165</link>
      <description>try this:&lt;BR /&gt;Remove control-M's from a windows text file.&lt;BR /&gt;cat $1 | tr -d "\015"&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Jun 2006 00:15:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-question/m-p/3810304#M268165</guid>
      <dc:creator>inventsekar_1</dc:creator>
      <dc:date>2006-06-22T00:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: vi question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-question/m-p/3810305#M268166</link>
      <description>thank you guys!</description>
      <pubDate>Thu, 22 Jun 2006 00:21:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-question/m-p/3810305#M268166</guid>
      <dc:creator>Igor Sovin</dc:creator>
      <dc:date>2006-06-22T00:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: vi question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-question/m-p/3810306#M268167</link>
      <description>And the reason you have a file with this strange character is that you transferred a file from a PC to HP-UX. Because PCs have very different file formats, you need to transfer these text files with ftp's special translation feature called ASCII. And this is required to send HP-UX text files to a PC -- always use the ASCII option.&lt;BR /&gt; &lt;BR /&gt;But for all current files on your HP-UX system, don't bother with vi or sed, just use the two special commands that perform the translation: dos2ux and ux2dos</description>
      <pubDate>Thu, 22 Jun 2006 20:32:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-question/m-p/3810306#M268167</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2006-06-22T20:32:10Z</dc:date>
    </item>
  </channel>
</rss>

