<?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: Grep for Multiple Strings in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-for-multiple-strings/m-p/5002063#M424635</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;  &lt;BR /&gt;&lt;BR /&gt;egrep -i 'text1|text2' File&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;DK</description>
    <pubDate>Fri, 08 Sep 2006 11:24:05 GMT</pubDate>
    <dc:creator>Deepak Kulkarni</dc:creator>
    <dc:date>2006-09-08T11:24:05Z</dc:date>
    <item>
      <title>Grep for Multiple Strings</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-for-multiple-strings/m-p/5002059#M424631</link>
      <description>How do use grep to search for multiple strings?&lt;BR /&gt;&lt;BR /&gt;OS=11.i&lt;BR /&gt;All replies are appreciated.</description>
      <pubDate>Fri, 08 Sep 2006 11:08:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-for-multiple-strings/m-p/5002059#M424631</guid>
      <dc:creator>Global Server Operation</dc:creator>
      <dc:date>2006-09-08T11:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: Grep for Multiple Strings</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-for-multiple-strings/m-p/5002060#M424632</link>
      <description>grep -E -e 'Mickey' -e 'Minnie' -e 'Pluto' &amp;lt; myfile&lt;BR /&gt;&lt;BR /&gt;Man grep for details (of course, if you had done that you wouldn't have needed to ask).</description>
      <pubDate>Fri, 08 Sep 2006 11:11:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-for-multiple-strings/m-p/5002060#M424632</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-09-08T11:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: Grep for Multiple Strings</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-for-multiple-strings/m-p/5002061#M424633</link>
      <description>You can use the -e option on grep.&lt;BR /&gt;&lt;BR /&gt;grep -e this -e that filename&lt;BR /&gt;&lt;BR /&gt;This would return lines containing either "this" or "that".</description>
      <pubDate>Fri, 08 Sep 2006 11:11:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-for-multiple-strings/m-p/5002061#M424633</guid>
      <dc:creator>Jeff_Traigle</dc:creator>
      <dc:date>2006-09-08T11:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: Grep for Multiple Strings</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-for-multiple-strings/m-p/5002062#M424634</link>
      <description>you can use egrep -i "string1|string2|string3"&lt;BR /&gt;&lt;BR /&gt;...</description>
      <pubDate>Fri, 08 Sep 2006 11:19:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-for-multiple-strings/m-p/5002062#M424634</guid>
      <dc:creator>IT_2007</dc:creator>
      <dc:date>2006-09-08T11:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: Grep for Multiple Strings</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-for-multiple-strings/m-p/5002063#M424635</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;  &lt;BR /&gt;&lt;BR /&gt;egrep -i 'text1|text2' File&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;DK</description>
      <pubDate>Fri, 08 Sep 2006 11:24:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-for-multiple-strings/m-p/5002063#M424635</guid>
      <dc:creator>Deepak Kulkarni</dc:creator>
      <dc:date>2006-09-08T11:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: Grep for Multiple Strings</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-for-multiple-strings/m-p/5002064#M424636</link>
      <description># grep -E 's1|s2|s3'</description>
      <pubDate>Fri, 08 Sep 2006 11:26:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-for-multiple-strings/m-p/5002064#M424636</guid>
      <dc:creator>spex</dc:creator>
      <dc:date>2006-09-08T11:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: Grep for Multiple Strings</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-for-multiple-strings/m-p/5002065#M424637</link>
      <description>VOM,&lt;BR /&gt;&lt;BR /&gt;According to man pages:&lt;BR /&gt;&lt;BR /&gt;"-e expression       Same as a simple expression argument, but useful when the expression begins with a hyphen (-).  Multiple -e options can be used to specify multiple patterns; an input line is selected if it matches any of the specified patterns."&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Jaime</description>
      <pubDate>Fri, 08 Sep 2006 11:27:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-for-multiple-strings/m-p/5002065#M424637</guid>
      <dc:creator>Jaime Bolanos Rojas.</dc:creator>
      <dc:date>2006-09-08T11:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: Grep for Multiple Strings</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-for-multiple-strings/m-p/5002066#M424638</link>
      <description>I should add that the grep -E (enhanced) may well be a better choice because unlike plain grep (without the -E) you can do much more powerful Regular Expression matches rather than simple strings.</description>
      <pubDate>Fri, 08 Sep 2006 11:36:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-for-multiple-strings/m-p/5002066#M424638</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-09-08T11:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: Grep for Multiple Strings</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-for-multiple-strings/m-p/5002067#M424639</link>
      <description>Thanks for all replies. I have found each reply useful.</description>
      <pubDate>Fri, 08 Sep 2006 11:41:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-for-multiple-strings/m-p/5002067#M424639</guid>
      <dc:creator>Global Server Operation</dc:creator>
      <dc:date>2006-09-08T11:41:12Z</dc:date>
    </item>
  </channel>
</rss>

