<?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 vi in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/vi/m-p/2789390#M79322</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have a text file "abc" in which I want to substitute all the "/users/tiger" to "/rain/blue/violet"&lt;BR /&gt;&lt;BR /&gt;In the file abc "/users/tiger" exists about 100 times.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Raje.</description>
    <pubDate>Tue, 20 Aug 2002 05:06:23 GMT</pubDate>
    <dc:creator>Sanjiv Sharma_1</dc:creator>
    <dc:date>2002-08-20T05:06:23Z</dc:date>
    <item>
      <title>vi</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi/m-p/2789390#M79322</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have a text file "abc" in which I want to substitute all the "/users/tiger" to "/rain/blue/violet"&lt;BR /&gt;&lt;BR /&gt;In the file abc "/users/tiger" exists about 100 times.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Raje.</description>
      <pubDate>Tue, 20 Aug 2002 05:06:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi/m-p/2789390#M79322</guid>
      <dc:creator>Sanjiv Sharma_1</dc:creator>
      <dc:date>2002-08-20T05:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: vi</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi/m-p/2789391#M79323</link>
      <description>Hi&lt;BR /&gt;%s;/users/tiger;/rain/blue/violet;g &lt;BR /&gt;&lt;BR /&gt;regards seba</description>
      <pubDate>Tue, 20 Aug 2002 05:15:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi/m-p/2789391#M79323</guid>
      <dc:creator>Sebastian Galeski_1</dc:creator>
      <dc:date>2002-08-20T05:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: vi</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi/m-p/2789392#M79324</link>
      <description>Hi Raje,&lt;BR /&gt;&lt;BR /&gt;To change all occurances of /users/tiger to /rain/blue/violet.&lt;BR /&gt;&lt;BR /&gt;vi the file and then:&lt;BR /&gt;&lt;BR /&gt;:1,$s/\/users\/tiger/\/rain\/blue\/violet/g&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;Michael</description>
      <pubDate>Tue, 20 Aug 2002 05:18:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi/m-p/2789392#M79324</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2002-08-20T05:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: vi</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi/m-p/2789393#M79325</link>
      <description>Of course use this command in vi</description>
      <pubDate>Tue, 20 Aug 2002 05:21:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi/m-p/2789393#M79325</guid>
      <dc:creator>Sebastian Galeski_1</dc:creator>
      <dc:date>2002-08-20T05:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: vi</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi/m-p/2789394#M79326</link>
      <description>Or using sed from the command line&lt;BR /&gt;&lt;BR /&gt;cat abc | sed 's/\users\/tiger/\rain\/blue\/violet/g' &amp;gt;abc.1</description>
      <pubDate>Tue, 20 Aug 2002 05:37:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi/m-p/2789394#M79326</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2002-08-20T05:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: vi</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi/m-p/2789395#M79327</link>
      <description>Hi Raje,&lt;BR /&gt;&lt;BR /&gt;Using perl:&lt;BR /&gt;&lt;BR /&gt;perl -pi -e 's+/users/tiger+/rain/blue/violet+g' filename&lt;BR /&gt;&lt;BR /&gt;Rgds, Robin</description>
      <pubDate>Tue, 20 Aug 2002 06:07:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi/m-p/2789395#M79327</guid>
      <dc:creator>Robin Wakefield</dc:creator>
      <dc:date>2002-08-20T06:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: vi</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi/m-p/2789396#M79328</link>
      <description>Hi Raje,&lt;BR /&gt;&lt;BR /&gt;As Procura recommend is better not to use cat:&lt;BR /&gt;sed 's/\users\/tiger/\rain\/blue\/violet/g' abc &amp;gt;abc.1 &lt;BR /&gt;&lt;BR /&gt;If you want to check the changes you can use grep:&lt;BR /&gt;&lt;BR /&gt;grep "\/users\/tiger" abc &lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Justo.</description>
      <pubDate>Tue, 20 Aug 2002 06:07:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi/m-p/2789396#M79328</guid>
      <dc:creator>Justo Exposito</dc:creator>
      <dc:date>2002-08-20T06:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: vi</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi/m-p/2789397#M79329</link>
      <description>My suggestion is only slightly different from Michaels:&lt;BR /&gt;&lt;BR /&gt;:g/\/users\/tiger/s//\/rain\/blue\/violet/g&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Trond</description>
      <pubDate>Tue, 20 Aug 2002 08:32:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi/m-p/2789397#M79329</guid>
      <dc:creator>Trond Haugen</dc:creator>
      <dc:date>2002-08-20T08:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: vi</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi/m-p/2789398#M79330</link>
      <description>&lt;BR /&gt;1,s_/users/tiger_/rain/blue/violet_g9999&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Tue, 20 Aug 2002 09:41:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi/m-p/2789398#M79330</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-08-20T09:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: vi</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi/m-p/2789399#M79331</link>
      <description>Here is the syntax for search/replace. (there are already a lot of winners here.&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;:g/search-string/s//replace-string/     global search and replace&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 20 Aug 2002 11:08:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi/m-p/2789399#M79331</guid>
      <dc:creator>Judy Traynor</dc:creator>
      <dc:date>2002-08-20T11:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: vi</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi/m-p/2789400#M79332</link>
      <description>&lt;BR /&gt;Monica,&lt;BR /&gt;&lt;BR /&gt;I was pointing out that the separator does not have to be a slash (/), and that an underscore (_) can easily be used (as any other character also). The point being that too many forward and backward slashes is just insanely crazy.&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Tue, 20 Aug 2002 11:26:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi/m-p/2789400#M79332</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-08-20T11:26:38Z</dc:date>
    </item>
  </channel>
</rss>

