<?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 help in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-help/m-p/2694464#M842986</link>
    <description>Hi Elaine,&lt;BR /&gt;&lt;BR /&gt;The only one thing that you must know is the escape caracter is "\" then if you want to protect a caracter like "?" you will need to put a "\" before, like this:&lt;BR /&gt;&lt;BR /&gt;1,$s/\?/\\/g&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Justo.</description>
    <pubDate>Mon, 01 Apr 2002 15:30:47 GMT</pubDate>
    <dc:creator>Justo Exposito</dc:creator>
    <dc:date>2002-04-01T15:30:47Z</dc:date>
    <item>
      <title>vi help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-help/m-p/2694459#M842981</link>
      <description>I need help editing a file.  I know how to substitute words and characters globally using g/cat/s//dog/g but what if instead of substuting cat for dog, I want to substitute a / for ? character?  Any help will be greatly appreciated.  Thanks..</description>
      <pubDate>Mon, 01 Apr 2002 15:18:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-help/m-p/2694459#M842981</guid>
      <dc:creator>William Pribble</dc:creator>
      <dc:date>2002-04-01T15:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: vi help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-help/m-p/2694460#M842982</link>
      <description>To substitute a / for a ? globally in vi do:&lt;BR /&gt;&lt;BR /&gt;:1,$s/\?/\//g&lt;BR /&gt;&lt;BR /&gt;The \ characters are 'escaping' the next character so that it is interpreted literally as a regular character and not as a wildcard character.</description>
      <pubDate>Mon, 01 Apr 2002 15:23:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-help/m-p/2694460#M842982</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2002-04-01T15:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: vi help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-help/m-p/2694461#M842983</link>
      <description>Escape the "/" with "|" ie:&lt;BR /&gt;1,$s/?/\//g&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Mon, 01 Apr 2002 15:24:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-help/m-p/2694461#M842983</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2002-04-01T15:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: vi help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-help/m-p/2694462#M842984</link>
      <description>Sorry, I made a typo.  My corrected post should be...&lt;BR /&gt;&lt;BR /&gt;Escape the "/" with "\" ie:&lt;BR /&gt;1,$s/?/\//g&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Mon, 01 Apr 2002 15:25:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-help/m-p/2694462#M842984</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2002-04-01T15:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: vi help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-help/m-p/2694463#M842985</link>
      <description>Or you can do this command line way (with out using vi)..&lt;BR /&gt;&lt;BR /&gt;# sed 's/\//\?/g' test &amp;gt; new-test</description>
      <pubDate>Mon, 01 Apr 2002 15:30:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-help/m-p/2694463#M842985</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-04-01T15:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: vi help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-help/m-p/2694464#M842986</link>
      <description>Hi Elaine,&lt;BR /&gt;&lt;BR /&gt;The only one thing that you must know is the escape caracter is "\" then if you want to protect a caracter like "?" you will need to put a "\" before, like this:&lt;BR /&gt;&lt;BR /&gt;1,$s/\?/\\/g&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Justo.</description>
      <pubDate>Mon, 01 Apr 2002 15:30:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-help/m-p/2694464#M842986</guid>
      <dc:creator>Justo Exposito</dc:creator>
      <dc:date>2002-04-01T15:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: vi help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-help/m-p/2694465#M842987</link>
      <description>Thanks for all the responses!</description>
      <pubDate>Mon, 01 Apr 2002 15:45:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-help/m-p/2694465#M842987</guid>
      <dc:creator>William Pribble</dc:creator>
      <dc:date>2002-04-01T15:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: vi help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-help/m-p/2694466#M842988</link>
      <description>Hello&lt;BR /&gt;I see you already got your answer there. But here is a vi tip that I got on the forum that I love to share with you. In vi to instert the output from commands you can do&lt;BR /&gt;&lt;BR /&gt;:.!ls -l &lt;BR /&gt;&lt;BR /&gt;(make sure you are on a clean line, or it get's whacked). &lt;BR /&gt;You can insert the output from commands into your file or script.&lt;BR /&gt;&lt;BR /&gt;Richard</description>
      <pubDate>Mon, 01 Apr 2002 16:31:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-help/m-p/2694466#M842988</guid>
      <dc:creator>someone_4</dc:creator>
      <dc:date>2002-04-01T16:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: vi help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-help/m-p/2694467#M842989</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;everyone seems to over complecate this instead of using a / delimeter use something else such as !&lt;BR /&gt;&lt;BR /&gt;ie&lt;BR /&gt;&lt;BR /&gt;1,$s!dog!cat!g&lt;BR /&gt;&lt;BR /&gt;John.</description>
      <pubDate>Mon, 01 Apr 2002 16:39:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-help/m-p/2694467#M842989</guid>
      <dc:creator>John Carr_2</dc:creator>
      <dc:date>2002-04-01T16:39:01Z</dc:date>
    </item>
  </channel>
</rss>

