<?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 commands in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-commands/m-p/3515768#M701076</link>
    <description>How about g/word/d&lt;BR /&gt;&lt;BR /&gt;This should delete the line, regardless of where on that line it occurs.&lt;BR /&gt;&lt;BR /&gt;Dwane</description>
    <pubDate>Thu, 31 Mar 2005 16:51:47 GMT</pubDate>
    <dc:creator>Dwane Ballard_1</dc:creator>
    <dc:date>2005-03-31T16:51:47Z</dc:date>
    <item>
      <title>vi commands</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-commands/m-p/3515765#M701073</link>
      <description>Hi&lt;BR /&gt;How Can I delete a line containing a lot of specific word in a vi file? Is there an option in vi editor?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Bye</description>
      <pubDate>Thu, 31 Mar 2005 16:02:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-commands/m-p/3515765#M701073</guid>
      <dc:creator>DIEGO_40</dc:creator>
      <dc:date>2005-03-31T16:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: vi commands</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-commands/m-p/3515766#M701074</link>
      <description>If you want to do this interactively while inside 'vi'&lt;BR /&gt;editor, I don't think so. But you could easily do this&lt;BR /&gt;in command like. Something like:&lt;BR /&gt;&lt;BR /&gt;# cat infile | grep -v specific_word &amp;gt; outfile&lt;BR /&gt;&lt;BR /&gt;(infile is your file name and specific_word is the specific &lt;BR /&gt;word and outfile is the file which would be "infile" with&lt;BR /&gt;all the lines containing specific_word removed).&lt;BR /&gt;&lt;BR /&gt;Is this what you want?&lt;BR /&gt;&lt;BR /&gt;- Biswajit&lt;BR /&gt;</description>
      <pubDate>Thu, 31 Mar 2005 16:15:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-commands/m-p/3515766#M701074</guid>
      <dc:creator>Biswajit Tripathy</dc:creator>
      <dc:date>2005-03-31T16:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: vi commands</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-commands/m-p/3515767#M701075</link>
      <description>You need this to be 'in place' right?&lt;BR /&gt;That is, same input and output file name?&lt;BR /&gt;&lt;BR /&gt;In interactive vi this this easy: &lt;BR /&gt;/word&lt;BR /&gt;dd&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;For a script i would select grep -v as shown before, taking care not to blow away the input.&lt;BR /&gt;&lt;BR /&gt;Or I would use the special perl option for this: -i = 'in place'&lt;BR /&gt;Example:&lt;BR /&gt;&lt;BR /&gt;# cat &amp;gt; x&lt;BR /&gt;aap&lt;BR /&gt;noot&lt;BR /&gt;mies&lt;BR /&gt;# perl -ni -e 'print unless /noot/' x&lt;BR /&gt;# cat x&lt;BR /&gt;aap&lt;BR /&gt;mies&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;fwiw,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 31 Mar 2005 16:51:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-commands/m-p/3515767#M701075</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2005-03-31T16:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: vi commands</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-commands/m-p/3515768#M701076</link>
      <description>How about g/word/d&lt;BR /&gt;&lt;BR /&gt;This should delete the line, regardless of where on that line it occurs.&lt;BR /&gt;&lt;BR /&gt;Dwane</description>
      <pubDate>Thu, 31 Mar 2005 16:51:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-commands/m-p/3515768#M701076</guid>
      <dc:creator>Dwane Ballard_1</dc:creator>
      <dc:date>2005-03-31T16:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: vi commands</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-commands/m-p/3515769#M701077</link>
      <description>Thanks to all, I follow the Dwane command and it's work good!!&lt;BR /&gt;&lt;BR /&gt;Ciao&lt;BR /&gt;Diego</description>
      <pubDate>Thu, 31 Mar 2005 17:25:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-commands/m-p/3515769#M701077</guid>
      <dc:creator>DIEGO_40</dc:creator>
      <dc:date>2005-03-31T17:25:20Z</dc:date>
    </item>
  </channel>
</rss>

