<?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/ex delete with multiple pattern searches in ex same command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-ex-delete-with-multiple-pattern-searches-in-ex-same-command/m-p/3077676#M141982</link>
    <description>hi jack,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;:/printer 1 2/;/autowrap/d&lt;BR /&gt;&lt;BR /&gt;this will work if pattern 1 is followd by pattern2&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;aparna&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 25 Sep 2003 01:33:54 GMT</pubDate>
    <dc:creator>aparna challagulla</dc:creator>
    <dc:date>2003-09-25T01:33:54Z</dc:date>
    <item>
      <title>vi/ex delete with multiple pattern searches in ex same command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-ex-delete-with-multiple-pattern-searches-in-ex-same-command/m-p/3077673#M141979</link>
      <description>vi/ex only please.&lt;BR /&gt;&lt;BR /&gt;I want to be able to delete some rows from file that must meet two pattern searches.&lt;BR /&gt;&lt;BR /&gt;example:  Delete all rows that contain patterns "Printer 12" and "autowrap"&lt;BR /&gt;&lt;BR /&gt;jack..</description>
      <pubDate>Wed, 24 Sep 2003 14:04:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-ex-delete-with-multiple-pattern-searches-in-ex-same-command/m-p/3077673#M141979</guid>
      <dc:creator>Jack C. Mahaffey</dc:creator>
      <dc:date>2003-09-24T14:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: vi/ex delete with multiple pattern searches in ex same command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-ex-delete-with-multiple-pattern-searches-in-ex-same-command/m-p/3077674#M141980</link>
      <description>I don't believe this is possible in vi - don't know about ex.&lt;BR /&gt; &lt;BR /&gt;Of course, if you are willing to permit shell, then:&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;egrep -v "Printer 12|autowrap" file &amp;gt; newfile&lt;BR /&gt; &lt;BR /&gt;where "file" is the original, and "newfile" is the output.&lt;BR /&gt; &lt;BR /&gt;Rob&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Sep 2003 14:12:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-ex-delete-with-multiple-pattern-searches-in-ex-same-command/m-p/3077674#M141980</guid>
      <dc:creator>Rob_132</dc:creator>
      <dc:date>2003-09-24T14:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: vi/ex delete with multiple pattern searches in ex same command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-ex-delete-with-multiple-pattern-searches-in-ex-same-command/m-p/3077675#M141981</link>
      <description>You could do the following if autowrap follows Printer 12-&lt;BR /&gt; &lt;BR /&gt;:set magic&lt;BR /&gt;:g/Printer 12.*autowrap/d&lt;BR /&gt; &lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;-- Rod Hills&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Sep 2003 15:29:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-ex-delete-with-multiple-pattern-searches-in-ex-same-command/m-p/3077675#M141981</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2003-09-24T15:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: vi/ex delete with multiple pattern searches in ex same command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-ex-delete-with-multiple-pattern-searches-in-ex-same-command/m-p/3077676#M141982</link>
      <description>hi jack,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;:/printer 1 2/;/autowrap/d&lt;BR /&gt;&lt;BR /&gt;this will work if pattern 1 is followd by pattern2&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;aparna&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Sep 2003 01:33:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-ex-delete-with-multiple-pattern-searches-in-ex-same-command/m-p/3077676#M141982</guid>
      <dc:creator>aparna challagulla</dc:creator>
      <dc:date>2003-09-25T01:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: vi/ex delete with multiple pattern searches in ex same command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-ex-delete-with-multiple-pattern-searches-in-ex-same-command/m-p/3077677#M141983</link>
      <description>hi jack,&lt;BR /&gt;&lt;BR /&gt;my previous answer will delete all the lines in between the first and last match. oops sorry!!!! &lt;BR /&gt;&lt;BR /&gt;i think the best way to do this is using Rod's answer.&lt;BR /&gt;&lt;BR /&gt;to delete all rows containing patterns "printer 1 2" and "autowrap"&lt;BR /&gt;&lt;BR /&gt;:set magic&lt;BR /&gt;:g/Printer 1 2.*autowrap/d&lt;BR /&gt;:g/autowrap.*Printer 1 2/d&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;aparna</description>
      <pubDate>Thu, 25 Sep 2003 02:15:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-ex-delete-with-multiple-pattern-searches-in-ex-same-command/m-p/3077677#M141983</guid>
      <dc:creator>aparna challagulla</dc:creator>
      <dc:date>2003-09-25T02:15:22Z</dc:date>
    </item>
  </channel>
</rss>

