<?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: how to grep multiple patterns in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/how-to-grep-multiple-patterns/m-p/5056696#M93832</link>
    <description>egrep&lt;BR /&gt;&lt;BR /&gt;command |egrep "Selection Name XXX|FALSE" &lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
    <pubDate>Thu, 05 Jul 2007 12:41:11 GMT</pubDate>
    <dc:creator>Geoff Wild</dc:creator>
    <dc:date>2007-07-05T12:41:11Z</dc:date>
    <item>
      <title>how to grep multiple patterns</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-grep-multiple-patterns/m-p/5056694#M93830</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;My requirement is that I wanted to grep multiple patterns from the output of some command. &lt;BR /&gt;&lt;BR /&gt;For example&lt;BR /&gt;&lt;BR /&gt;Output is&lt;BR /&gt;&lt;BR /&gt;10     Selection Name         XXX&lt;BR /&gt;44     isInterface                     TRUE&lt;BR /&gt;52     isIP                            TRUE&lt;BR /&gt;53     isIPX                           FALSE&lt;BR /&gt;   &lt;BR /&gt;I wanted to grep the value of Selection name XXX and also isIPF(FALSE) in a single command&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Padma&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 05 Jul 2007 12:22:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-grep-multiple-patterns/m-p/5056694#M93830</guid>
      <dc:creator>Padma Asrani</dc:creator>
      <dc:date>2007-07-05T12:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to grep multiple patterns</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-grep-multiple-patterns/m-p/5056695#M93831</link>
      <description>egrep&lt;BR /&gt;&lt;BR /&gt;egrep "Selection Name XXX|FALSE"&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Thu, 05 Jul 2007 12:40:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-grep-multiple-patterns/m-p/5056695#M93831</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2007-07-05T12:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to grep multiple patterns</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-grep-multiple-patterns/m-p/5056696#M93832</link>
      <description>egrep&lt;BR /&gt;&lt;BR /&gt;command |egrep "Selection Name XXX|FALSE" &lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Thu, 05 Jul 2007 12:41:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-grep-multiple-patterns/m-p/5056696#M93832</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2007-07-05T12:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to grep multiple patterns</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-grep-multiple-patterns/m-p/5056697#M93833</link>
      <description># &lt;COMMAND_OUTPUT&gt; | grep -E "Selection Name XXX|isIPX FALSE"&lt;/COMMAND_OUTPUT&gt;</description>
      <pubDate>Thu, 05 Jul 2007 12:46:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-grep-multiple-patterns/m-p/5056697#M93833</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2007-07-05T12:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: how to grep multiple patterns</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-grep-multiple-patterns/m-p/5056698#M93834</link>
      <description>Thanks a lot for quick response. It works.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Padma</description>
      <pubDate>Thu, 05 Jul 2007 12:53:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-grep-multiple-patterns/m-p/5056698#M93834</guid>
      <dc:creator>Padma Asrani</dc:creator>
      <dc:date>2007-07-05T12:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to grep multiple patterns</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-grep-multiple-patterns/m-p/5056699#M93835</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;# grep -e XXX -e isIPF&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 05 Jul 2007 12:53:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-grep-multiple-patterns/m-p/5056699#M93835</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-07-05T12:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: how to grep multiple patterns</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-grep-multiple-patterns/m-p/5056700#M93836</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;# grep -e XXX -e isIPX&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 05 Jul 2007 12:54:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-grep-multiple-patterns/m-p/5056700#M93836</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-07-05T12:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: how to grep multiple patterns</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-grep-multiple-patterns/m-p/5056701#M93837</link>
      <description>Thanks a lot to all</description>
      <pubDate>Thu, 05 Jul 2007 12:54:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-grep-multiple-patterns/m-p/5056701#M93837</guid>
      <dc:creator>Padma Asrani</dc:creator>
      <dc:date>2007-07-05T12:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: how to grep multiple patterns</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-grep-multiple-patterns/m-p/5056702#M93838</link>
      <description>As mentioned by several people, there is a -e option just for that.  I'd use that over the egrep hammer.&lt;BR /&gt;&lt;BR /&gt;You can also use -f file and put the patterns there.  And finally, you can use one long quoted string with embedded newlines:&lt;BR /&gt;... | grep "Selection Name XXX&lt;BR /&gt;isIPX FALSE"&lt;BR /&gt;</description>
      <pubDate>Fri, 06 Jul 2007 03:15:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-grep-multiple-patterns/m-p/5056702#M93838</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-07-06T03:15:18Z</dc:date>
    </item>
  </channel>
</rss>

