<?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/3033990#M133136</link>
    <description>Note that "." represents any single character, so enter this vi global replace command:&lt;BR /&gt;:/.123/s//0123/g&lt;BR /&gt;</description>
    <pubDate>Fri, 25 Jul 2003 18:07:04 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2003-07-25T18:07:04Z</dc:date>
    <item>
      <title>vi question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-question/m-p/3033985#M133131</link>
      <description>Hello ,&lt;BR /&gt;Is there any easy way to replace bunch of word in file in vi mode. For example in a file i have  strings as "x123" ,"y123" ,"4123" etc.&lt;BR /&gt;I would like to change these strings as "0123".Please help.&lt;BR /&gt;Thanks&lt;BR /&gt; &lt;BR /&gt;</description>
      <pubDate>Fri, 25 Jul 2003 17:59:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-question/m-p/3033985#M133131</guid>
      <dc:creator>subhashni</dc:creator>
      <dc:date>2003-07-25T17:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: vi question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-question/m-p/3033986#M133132</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Try this:&lt;BR /&gt;&lt;BR /&gt;:%s/.123/0123/g&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;</description>
      <pubDate>Fri, 25 Jul 2003 18:03:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-question/m-p/3033986#M133132</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2003-07-25T18:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: vi question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-question/m-p/3033987#M133133</link>
      <description>You can use global replacement method in vi mode &lt;BR /&gt;for Ex: if you want to replace x123 as 0123 use this way&lt;BR /&gt;&lt;BR /&gt;:1,$s/x123/0123/g&lt;BR /&gt;&lt;BR /&gt;-USA...</description>
      <pubDate>Fri, 25 Jul 2003 18:04:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-question/m-p/3033987#M133133</guid>
      <dc:creator>Uday_S_Ankolekar</dc:creator>
      <dc:date>2003-07-25T18:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: vi question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-question/m-p/3033988#M133134</link>
      <description>How about using sed:&lt;BR /&gt;&lt;BR /&gt;sed 's/*123/0123/g' filename&lt;BR /&gt;&lt;BR /&gt;I think that will do it.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 25 Jul 2003 18:05:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-question/m-p/3033988#M133134</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2003-07-25T18:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: vi question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-question/m-p/3033989#M133135</link>
      <description>The command to use would be:&lt;BR /&gt;&lt;BR /&gt;:1,$s/[1-9a-zA-Z]123/0123/g&lt;BR /&gt;&lt;BR /&gt;The above will replace any string that starts with a number other than 0 or an upper or lower case letter followed by 123 (1123,a123,D123, etc) with 0123 and will do it for all occurrences.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 25 Jul 2003 18:06:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-question/m-p/3033989#M133135</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2003-07-25T18:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: vi question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-question/m-p/3033990#M133136</link>
      <description>Note that "." represents any single character, so enter this vi global replace command:&lt;BR /&gt;:/.123/s//0123/g&lt;BR /&gt;</description>
      <pubDate>Fri, 25 Jul 2003 18:07:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-question/m-p/3033990#M133136</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-07-25T18:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: vi question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-question/m-p/3033991#M133137</link>
      <description>OK, I'll take that back.  Why don't I test these things before publicly making a fool of myself?    Arghh!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 25 Jul 2003 18:09:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-question/m-p/3033991#M133137</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2003-07-25T18:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: vi question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-question/m-p/3033992#M133138</link>
      <description>I am attaching a perl script that does this work with system calls.&lt;BR /&gt;&lt;BR /&gt;Makes it a bit easier.&lt;BR /&gt;&lt;BR /&gt;Its pretty wasy to read code.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Fri, 25 Jul 2003 18:21:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-question/m-p/3033992#M133138</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-07-25T18:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: vi question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-question/m-p/3033993#M133139</link>
      <description>Hello!&lt;BR /&gt;&lt;BR /&gt;Try this:&lt;BR /&gt;&lt;BR /&gt;:1,$s/OLD STRING/NEW STRING/g&lt;BR /&gt;&lt;BR /&gt;Caesar</description>
      <pubDate>Fri, 25 Jul 2003 18:26:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-question/m-p/3033993#M133139</guid>
      <dc:creator>Caesar_3</dc:creator>
      <dc:date>2003-07-25T18:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: vi question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-question/m-p/3033994#M133140</link>
      <description>Guys,&lt;BR /&gt;I have tried your suggetions.Really Really &lt;BR /&gt;I'm happy since it worked like anything.&lt;BR /&gt;Thanks for the useful quick reply.&lt;BR /&gt;</description>
      <pubDate>Fri, 25 Jul 2003 18:53:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-question/m-p/3033994#M133140</guid>
      <dc:creator>subhashni</dc:creator>
      <dc:date>2003-07-25T18:53:53Z</dc:date>
    </item>
  </channel>
</rss>

